Re: BUG #6227: No arguments for COPY OIDS and HEADER - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #6227: No arguments for COPY OIDS and HEADER
Date
Msg-id 3900.1317175556@sss.pgh.pa.us
Whole thread Raw
In response to BUG #6227: No arguments for COPY OIDS and HEADER  ("Itagaki Takahiro" <itagaki.takahiro@gmail.com>)
Responses Re: BUG #6227: No arguments for COPY OIDS and HEADER  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
List pgsql-bugs
"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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #6229: Postgresql crashes after: LOG: statistics buffer is full
Next
From: Itagaki Takahiro
Date:
Subject: Re: BUG #6227: No arguments for COPY OIDS and HEADER