Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0Gsm-0007gr-HN for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Jan 2013 19:30:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U0Gsl-0005Wb-S6 for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Jan 2013 19:30:11 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0Fn1-0003n2-Fp for pgsql-bugs@postgresql.org; Tue, 29 Jan 2013 18:20:11 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0Fmy-0006nO-HI for pgsql-bugs@postgresql.org; Tue, 29 Jan 2013 18:20:11 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0Fmw-0000qP-It for pgsql-bugs@postgresql.org; Tue, 29 Jan 2013 18:20:07 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1U0Fmv-0004Nq-ML for pgsql-bugs@postgresql.org; Tue, 29 Jan 2013 18:20:05 +0000 Date: Tue, 29 Jan 2013 18:20:05 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7836: COPY command does not honor 'FORMAT' option To: pgsql-bugs@postgresql.org From: kurt.lidl@cello.com X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 7836 Logged by: Kurt Lidl Email address: kurt.lidl@cello.com PostgreSQL version: 9.2.2 Operating system: FreeBSD 9.1 (i386 - 32bit) Description:=20=20=20=20=20=20=20=20 The COPY documentation says that with 9.1 (or newer), there is an option called "FORMAT", so the user can do "FORMAT binary". The old way just used a keyword "binary", and this way is supported for backwards compatibility. However, it doesn't appear that the "FORMAT" keyword works properly: psql -U pgsql template1 psql (9.2.2) Type "help" for help. template1=3D# copy pg_aggregate to '/tmp/agg.bin' with format binary; ERROR: syntax error at or near "format" LINE 1: copy pg_aggregate to '/tmp/agg.bin' with format binary; ^ template1=3D# copy pg_aggregate to '/tmp/agg.bin' with binary; COPY 120 --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs