Re: WIP patch: add (PRE|POST)PROCESSOR options to COPY

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: WIP patch: add (PRE|POST)PROCESSOR options to COPY
Дата
Msg-id 50A3EB8B.3040003@gmx.net
обсуждение исходный текст
Ответ на Re: WIP patch: add (PRE|POST)PROCESSOR options to COPY  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: WIP patch: add (PRE|POST)PROCESSOR options to COPY  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On 11/14/12 11:50 AM, Andrew Dunstan wrote:
>>     COPY table FROM 'some command line |';
>>     COPY table TO '| some command line';
>>
> 
> 
> I'd like to be able to filter STDIN if possible - with this syntax how
> is COPY going to know to hook up STDIN to the program?

Why don't you filter the data before it gets to stdin?  Some program is
feeding the data to "stdin" on the client side.  Why doesn't that do the
filtering?  I don't see a large advantage in having the data be sent
unfiltered to the server and having the server do the filtering.



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Enabling Checksums
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Enabling Checksums