pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
documentation for SQL "COPY" says "FORMAT"
3+ messages / 3 participants
[nested] [flat]

* documentation for SQL "COPY" says "FORMAT"
@ 2017-12-06 00:01  randumbloggr@gmail.com
  0 siblings, 1 reply; 3+ messages in thread

From: randumbloggr@gmail.com @ 2017-12-06 00:01 UTC (permalink / raw)
  To: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.0/static/sql-copy.html
Description:

the documentation for the copy command (since version 9.0)  says to use the
keyword "FORMAT" , this keyword should be omitted (eg: say "CSV" instead of
"FORMAT CSV") . It also says the default is "text" but specifying "text" is
a syntax error.


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: documentation for SQL "COPY" says "FORMAT"
@ 2017-12-06 00:11  David G. Johnston <david.g.johnston@gmail.com>
  parent: randumbloggr@gmail.com
  0 siblings, 1 reply; 3+ messages in thread

From: David G. Johnston @ 2017-12-06 00:11 UTC (permalink / raw)
  To: randumbloggr@gmail.com; +Cc: pgsql-docs

On Tue, Dec 5, 2017 at 5:01 PM, <randumbloggr@gmail.com> wrote:

> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/9.0/static/sql-copy.html
> Description:
>
> the documentation for the copy command (since version 9.0)  says to use the
> keyword &quot;FORMAT&quot; , this keyword should be omitted (eg: say
> &quot;CSV&quot; instead of
> &quot;FORMAT CSV&quot;) . It also says the default is &quot;text&quot; but
> specifying &quot;text&quot; is
> a syntax error.
>


I'm pretty sure the docs are correct.  You should provide the exact
commands you think should work and the error message you receive when you
execute said commands.

David J.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: documentation for SQL "COPY" says "FORMAT"
@ 2017-12-06 00:18  Tom Lane <tgl@sss.pgh.pa.us>
  parent: David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2017-12-06 00:18 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-docs

"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tue, Dec 5, 2017 at 5:01 PM, <randumbloggr@gmail.com> wrote:
>> the documentation for the copy command (since version 9.0)  says to use the
>> keyword &quot;FORMAT&quot; , this keyword should be omitted

> I'm pretty sure the docs are correct.  You should provide the exact
> commands you think should work and the error message you receive when you
> execute said commands.

I think probably the OP is confusing the current COPY syntax with the
obsolete form documented at the bottom of the COPY page.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2017-12-06 00:18 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 00:01 documentation for SQL "COPY" says "FORMAT" randumbloggr@gmail.com
2017-12-06 00:11 ` David G. Johnston <david.g.johnston@gmail.com>
2017-12-06 00:18   ` Tom Lane <tgl@sss.pgh.pa.us>

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