From: Chris Curvey <chris@chriscurvey.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5964: doc bug -- copy does not take "format" literal
Date: Sun, 3 Apr 2011 00:44:50 GMT
Message-ID: <201104030044.p330iouQ010886@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 5964
Logged by: Chris Curvey
Email address: chris@chriscurvey.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';
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: chris@chriscurvey.com
Subject: Re: BUG #5964: doc bug -- copy does not take "format" literal
In-Reply-To: <201104030044.p330iouQ010886@wwwmaster.postgresql.org>
References: <201104030044.p330iouQ010886@wwwmaster.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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