Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Possible TODO item: copy to/from pipe



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group