Re: BUG #6227: No arguments for COPY OIDS and HEADER

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Itagaki Takahiro" <itagaki(dot)takahiro(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6227: No arguments for COPY OIDS and HEADER
Date: 2011-09-28 02:05:56
Message-ID: 3900.1317175556@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Itagaki Takahiro" <itagaki(dot)takahiro(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dmitry Ryabov 2011-09-28 02:18:31 BUG #6230: strange changes in behavior of string functions
Previous Message Tom Lane 2011-09-27 20:12:05 Re: BUG #6229: Postgresql crashes after: LOG: statistics buffer is full