Re: Possible TODO item: copy to/from pipe - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Possible TODO item: copy to/from pipe
Date
Msg-id 200606040012.k540C5V29587@candle.pha.pa.us
Whole thread Raw
In response to Re: Possible TODO item: copy to/from pipe  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: Possible TODO item: copy to/from pipe  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-hackers
Andreas Pflug wrote:
> Tom Lane wrote:
> > After re-reading what I just wrote to Andreas about how compression of
> > COPY data would be better done outside the backend than inside, it
> > struck me that we are missing a feature that's fairly common in Unix
> > programs.  Perhaps COPY ought to have the ability to pipe its output
> > to a shell command, or read input from a shell command.  Maybe something
> > like
> > 
> >     COPY mytable TO '| gzip >/home/tgl/mytable.dump.gz';

For use case, consider this:
    COPY mytable TO '| rsh x@y.com > test ';

so you can COPY to another server directly.

--  Bruce Momjian   http://candle.pha.pa.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Possible TODO item: copy to/from pipe
Next
From: Kris Jurka
Date:
Subject: Re: Going for "all green" buildfarm results