pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: kurt.lidl@cello.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7836: COPY command does not honor 'FORMAT' option
Date: Tue, 29 Jan 2013 18:20:05 +0000
Message-ID: <E1U0Fmv-0004Nq-ML@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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:        

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=# 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=# copy pg_aggregate to '/tmp/agg.bin' with binary;
COPY 120




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <E1U0Fmv-0004Nq-ML@wrigleys.postgresql.org>
Permalink:  ../E1U0Fmv-0004Nq-ML@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1U0Fmv-0004Nq-ML@wrigleys.postgresql.org

 · 

reply

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: kurt.lidl@cello.com
  Subject: Re: BUG #7836: COPY command does not honor 'FORMAT' option
  In-Reply-To: <E1U0Fmv-0004Nq-ML@wrigleys.postgresql.org>
  References: <E1U0Fmv-0004Nq-ML@wrigleys.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