Re: duplicate columns with COPY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: duplicate columns with COPY
Дата
Msg-id 12281.1198166635@sss.pgh.pa.us
обсуждение исходный текст
Ответ на duplicate columns with COPY  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: duplicate columns with COPY  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Is there a reason why COPY TO STDOUT does not allow columns to be specified 
> more than once?

> pei=# copy test1 (a, a) to stdout;
> ERROR:  42701: column "a" specified more than once

> Or is this just an overly extensive check that is actually intended for COPY 
> FROM STDIN?

I think it's reasonable even for COPY TO, since IMHO the odds that it's
a typo, rather than intentional, are probably 100:1.

As already noted, we do have a workaround if that is truly what you
intend.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: pgwin32_open returning EINVAL
Следующее
От: "Arunachalam Parthasarathy"
Дата:
Сообщение: query : max size Bytea