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
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq