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

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: BUG #6227: No arguments for COPY OIDS and HEADER
Дата
Msg-id CAJW2+qdtLz2k4zOaaPOmk5m6xcMHH9upVZh1w+hdEM=Qr+P+rg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #6227: No arguments for COPY OIDS and HEADER  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6227: No arguments for COPY OIDS and HEADER
Следующее
От: "Dmitry Ryabov"
Дата:
Сообщение: BUG #6230: strange changes in behavior of string functions