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

From Greg Stark
Subject Re: Possible TODO item: copy to/from pipe
Date
Msg-id 87hd30bny2.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Possible TODO item: copy to/from pipe  (Andreas Pflug <pgadmin@pse-consulting.de>)
List pgsql-hackers
Andreas Pflug <pgadmin@pse-consulting.de> writes:

> Bruce Momjian wrote:
> >
> > For use case, consider this:
> >
> >      COPY mytable TO '| rsh x@y.com > test ';
> >
> > so you can COPY to another server directly.
> >
> Why not rsh psql -c "\copy foobar to test" ?

Who knows? The sysadmin could have any reason to prefer one to the other. 

One that comes to mind is that he or she may want to automate this and may be
happier granting password-free access to a filesystem server that just holds
encrypted backups than to the live production database.

-- 
greg



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: More thoughts about planner's cost estimates
Next
From: Greg Stark
Date:
Subject: Re: 'CVS-Unknown' buildfarm failures?