pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7518: "FORMAT" in the "COPY" command
2+ messages / 2 participants
[nested] [flat]
* BUG #7518: "FORMAT" in the "COPY" command
@ 2012-09-04 09:02 matsusaka@sraoss.co.jp
2012-09-04 09:13 ` Re: BUG #7518: "FORMAT" in the "COPY" command TAKATSUKA Haruka <harukat@sra.co.jp>
0 siblings, 1 reply; 2+ messages in thread
From: matsusaka@sraoss.co.jp @ 2012-09-04 09:02 UTC (permalink / raw)
To: pgsql-bugs
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=# COPY table_name TO '/tmp/out.csv' CSV;
COPY 1
postgres=# 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...
 postgres=# \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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #7518: "FORMAT" in the "COPY" command
2012-09-04 09:02 BUG #7518: "FORMAT" in the "COPY" command matsusaka@sraoss.co.jp
@ 2012-09-04 09:13 ` TAKATSUKA Haruka <harukat@sra.co.jp>
0 siblings, 0 replies; 2+ messages in thread
From: TAKATSUKA Haruka @ 2012-09-04 09:13 UTC (permalink / raw)
To: matsusaka@sraoss.co.jp; +Cc: pgsql-bugs
Hi,
It's not bug.
> postgres=# COPY table_name TO '/tmp/out.csv' FORMAT 'CSV';
This should be the following.
COPY table_name TO '/tmp/out.csv' (FORMAT 'CSV')
On Tue, 04 Sep 2012 09:02:12 +0000
matsusaka@sraoss.co.jp wrote:
> 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=# COPY table_name TO '/tmp/out.csv' CSV;
> COPY 1
>
> postgres=# 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...
>
> $B!!(Bpostgres=# \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
>
>
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
---------------------------------------
TAKATSUKA Haruka / harukat@sraoss.co.jp
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-09-04 09:13 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-09-04 09:02 BUG #7518: "FORMAT" in the "COPY" command matsusaka@sraoss.co.jp
2012-09-04 09:13 ` TAKATSUKA Haruka <harukat@sra.co.jp>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox