pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Itagaki Takahiro <itagaki.takahiro@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6227: No arguments for COPY OIDS and HEADER
Date: Tue, 27 Sep 2011 22:05:56 -0400
Message-ID: <3900.1317175556@sss.pgh.pa.us> (raw)
In-Reply-To: <201109270610.p8R6AkMI004142@wwwmaster.postgresql.org>
References: <201109270610.p8R6AkMI004142@wwwmaster.postgresql.org>

"Itagaki Takahiro" <itagaki.takahiro@gmail.com> writes:
> Our documentation says OIDS and HEADER options in COPY command take [
> boolean ] arguments, but actually they don't accept any arguments. We can
> only set them to TRUE by specifying their names.

Um, these examples all work fine for me in HEAD:

regression=# copy tenk1 to '/dev/null' with (oids);
COPY 10000
regression=# copy tenk1 to '/dev/null' with (oids true);
COPY 10000
regression=# copy tenk1 to '/dev/null' with (oids false);
COPY 10000
regression=# copy tenk1 to '/dev/null' with (format csv, header);
COPY 10000
regression=# copy tenk1 to '/dev/null' with (format csv, header true);
COPY 10000
regression=# copy tenk1 to '/dev/null' with (format csv, header false);
COPY 10000

Also,

regression=# copy tenk1 to '/dev/null' with (oids fals); 
ERROR:  oids requires a Boolean value

so it is checking the argument.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <3900.1317175556@sss.pgh.pa.us>
Permalink:  ../3900.1317175556@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3900.1317175556@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, itagaki.takahiro@gmail.com
  Subject: Re: BUG #6227: No arguments for COPY OIDS and HEADER
  In-Reply-To: <3900.1317175556@sss.pgh.pa.us>
  References: <201109270610.p8R6AkMI004142@wwwmaster.postgresql.org> <3900.1317175556@sss.pgh.pa.us>

* 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