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

From Itagaki Takahiro
Subject Re: BUG #6227: No arguments for COPY OIDS and HEADER
Date
Msg-id CAJW2+qdtLz2k4zOaaPOmk5m6xcMHH9upVZh1w+hdEM=Qr+P+rg@mail.gmail.com
Whole thread Raw
In response to Re: BUG #6227: No arguments for COPY OIDS and HEADER  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Wed, Sep 28, 2011 at 11:05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "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:

Ah, I was wrong.
The new COPY syntax with parentheses accepts boolean values:

OK: COPY tbl FROM '/file' WITH (OIDS true)
NG: COPY tbl FROM '/file' WITH OIDS true

So, no bugs in the docs. Sorry.

--
Itagaki Takahiro

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #6227: No arguments for COPY OIDS and HEADER
Next
From: "Dmitry Ryabov"
Date:
Subject: BUG #6230: strange changes in behavior of string functions