Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8p1U-0005Wt-Vl for pgsql-bugs@postgresql.org; Tue, 04 Sep 2012 09:02:17 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8p1S-0007ow-4m for pgsql-bugs@postgresql.org; Tue, 04 Sep 2012 09:02:16 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8p1Q-0005Fg-QQ for pgsql-bugs@postgresql.org; Tue, 04 Sep 2012 09:02:13 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1T8p1Q-00009N-5V for pgsql-bugs@postgresql.org; Tue, 04 Sep 2012 09:02:12 +0000 Date: Tue, 04 Sep 2012 09:02:12 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7518: "FORMAT" in the "COPY" command To: pgsql-bugs@postgresql.org From: matsusaka@sraoss.co.jp X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201209/18 X-Sequence-Number: 34013 The following bug has been logged on the website: Bug reference: 7518 Logged by: Daichi Matsusaka Email address: matsusaka@sraoss.co.jp PostgreSQL version: 9.1.5 Operating system: (Centos5) Description: = Hi, I think manual "COPY" command to be in the wrong. postgres=3D# COPY table_name TO '/tmp/out.csv' CSV; COPY 1 postgres=3D# COPY table_name TO '/tmp/out.csv' FORMAT 'CSV'; ERROR: syntax error at or near "FORMAT" LINE 1: COPY table_name TO '/tmp/out.csv' FORMAT CSV; But, help is... =E3=80=80postgres=3D# \h COPY : : COPY { table_name [ ( column [, ...] ) ] | ( query ) } TO { 'filename' | STDOUT } [ [ WITH ] ( option [, ...] ) ] = where option can be one of: = FORMAT format_name -- Is here. OIDS [ boolean ] DELIMITER 'delimiter_character' : Is the same manual. http://www.postgresql.org/docs/9.2/static/sql-copy.html