"COPY foo FROM STDOUT" and ecpg

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема "COPY foo FROM STDOUT" and ecpg
Дата
Msg-id 512CD122.4050007@vmware.com
обсуждение исходный текст
Ответы Re: "COPY foo FROM STDOUT" and ecpg  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: "COPY foo FROM STDOUT" and ecpg  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-hackers
While looking at Fujita Etsuro's patch to allow copy to/from a shell
command, I noticed that the grammar currently allows these:

COPY foo FROM STDOUT
COPY foo TO STDIN

In other words, STDIN and STDOUT can be used completely interchangeably.
However, the ecpg grammar is more strict about that:

ERROR: COPY TO STDIN is not possible

Any particular reason for ecpg to check that, while the backend doesn't
care? I think we should just remove those checks from the ecpg grammar.

- Heikki

Вложения

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: PGXS contrib builds broken?
Следующее
От: Fujii Masao
Дата:
Сообщение: pg_xlogdump compile error