pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: David Fetter <david@fetter.org>
To: Andreas Pflug <pgadmin@pse-consulting.de>
To: Chris Browne <cbbrowne@acm.org>
To: pgsql-hackers@postgresql.org
Subject: Re: Possible TODO item: copy to/from pipe
Date: Wed, 31 May 2006 16:12:17 -0400
Message-ID: <447DF8A1.7070207@dunslane.net> (raw)
In-Reply-To: <20060531195812.GB12167@surnet.cl>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4013885E9@ratbert.vale-housing.co.uk>
	<447DC5B4.4080407@pse-consulting.de>
	<60ac8yt74e.fsf@dba2.int.libertyrms.com>
	<447DDCC3.7040304@pse-consulting.de>
	<447DE485.6040402@dunslane.net>
	<20060531191348.GK27220@fetter.org>
	<447DEED7.70306@dunslane.net>
	<20060531195812.GB12167@surnet.cl>

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



view thread (36+ messages)  latest in thread

Message-ID: <447DF8A1.7070207@dunslane.net>
Permalink:  ../447DF8A1.7070207@dunslane.net/
Also on:    postgresql.org/message-id/447DF8A1.7070207@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: andrew@dunslane.net, david@fetter.org, pgadmin@pse-consulting.de, cbbrowne@acm.org
  Subject: Re: Possible TODO item: copy to/from pipe
  In-Reply-To: <447DF8A1.7070207@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox