| From: | "Chris Curvey" <chris(at)chriscurvey(dot)com> |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | BUG #5964: doc bug -- copy does not take "format" literal |
| Date: | 2011-04-03 00:44:50 |
| Message-ID: | 201104030044.p330iouQ010886@wwwmaster.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 5964
Logged by: Chris Curvey
Email address: chris(at)chriscurvey(dot)com
PostgreSQL version: 9.0.3
Operating system: Linux (ubuntu 10.10 server 64-bit)
Description: doc bug -- copy does not take "format" literal
Details:
in http://www.postgresql.org/docs/9.0/static/sql-copy.html, the
documentation implies that you specify a format using the literal "format",
followed by one of the literals "text", "csv" or "binary".
Yet the following statement fails with "syntax error near 'format'"
copy zipcode_stage from '/path/to/zip_codes.csv' format csv header delimiter
e'\t';
and the following command (without 'format' succeeds)
copy zipcode_stage from '/Users/chris/pgperf/data/zip_codes.csv' csv header
delimiter e'\t';
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2011-04-03 16:46:49 | Re: BUG #5964: doc bug -- copy does not take "format" literal |
| Previous Message | Tom Lane | 2011-04-02 22:41:21 | Re: BUG #5959: pg_restore --use-list does not always work with a pg_restore generated TOC file |