From c7a7897f22aa3ad9b995a75a5fc4c933d0f9b383 Mon Sep 17 00:00:00 2001 From: Vignesh C Date: Fri, 17 Jul 2020 16:01:06 +0530 Subject: [PATCH 1/2] Corrected copy syntax. Split copy command into copy to & copy from and included the missing options. --- doc/src/sgml/ref/psql-ref.sgml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 42e862c..13179e8 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -982,9 +982,15 @@ testdb=> + \copy { table [ ( column_list ) ] } + from + { 'filename' | program 'command' | stdin | pstdin } + [ [ with ] ( option [, ...] ) ] + [ where condition ] + \copy { table [ ( column_list ) ] | ( query ) } - { from | to } - { 'filename' | program 'command' | stdin | stdout | pstdin | pstdout } + to + { 'filename' | program 'command' | stdout | pstdout } [ [ with ] ( option [, ...] ) ] -- 1.8.3.1