Re: Possible TODO item: copy to/from pipe

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Possible TODO item: copy to/from pipe
Дата
Msg-id 447DF8A1.7070207@dunslane.net
обсуждение исходный текст
Ответ на Re: Possible TODO item: copy to/from pipe  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Alvaro Herrera wrote:
> Andrew Dunstan wrote:
>   
>>
>> But why is that hugely better than piping psql output to gzip?
>>     
>
> psql output has already travelled over the network.
>
>   

As I understand Tom's suggestion, it does not involve compression of 
over the wire data. He suggested that on the server you would be able to do:
 COPY mytable TO '| gzip >/home/tgl/mytable.dump.gz';


and that there could be an equivalent extension on psql's \copy command, as an alternative to doing 

 psql -c "COPY mytable TO stdout" mydb | gzip ...



It's the second piece especially that seems to me unnecessary. 


So I am still unconvinced.



cheers

andrew


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Possible TODO item: copy to/from pipe
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: plperl's ppport.h out of date?