From: Assaf Gordon Date: Thu, 29 Sep 2016 11:06:35 -0400 Subject: [PATCH] Add new-vs-old COPY syntax example in documentation --- doc/src/sgml/ref/copy.sgml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/src/sgml/ref/copy.sgml b/doc/src/sgml/ref/copy.sgml index 07e2f45..531009b 100644 --- a/doc/src/sgml/ref/copy.sgml +++ b/doc/src/sgml/ref/copy.sgml @@ -86,6 +86,31 @@ COPY { table_name [ ( + New versus old syntax + + Starting with PostgreSQL version 9.0, the + COPY commands supports new syntax with parenthesis + and commas. The old syntax is still supported, see details + at the bottom of this page. + + + + New syntax: + +COPY country TO STDOUT (FORMAT CSV, NULL 'NA', HEADER ON); + + + + + Old syntax: + +COPY country TO STDOUT NULL 'NA' CSV HEADER; + + + + + + Parameters -- 2.8.2 --------------AFE6B15702E45E67FE86E19E Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --------------AFE6B15702E45E67FE86E19E--