Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 600A31337B43 for ; Sat, 2 Apr 2011 21:44:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 85142-04 for ; Sun, 3 Apr 2011 00:44:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id AD70C133616B for ; Sat, 2 Apr 2011 21:44:51 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p330iouh010887 for ; Sun, 3 Apr 2011 00:44:50 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p330iouQ010886; Sun, 3 Apr 2011 00:44:50 GMT (envelope-from www) Date: Sun, 3 Apr 2011 00:44:50 GMT Message-Id: <201104030044.p330iouQ010886@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5964: doc bug -- copy does not take "format" literal From: "Chris Curvey" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201104/10 X-Sequence-Number: 29929 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';