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

Re: Possible TODO item: copy to/from pipe

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Possible TODO item: copy to/from pipe
Date: 2006-06-04 00:12:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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(at)y(dot)com > test ';

so you can COPY to another server directly.

  Bruce Momjian

  + If your life is a hard drive, Christ can be your backup. +

In response to


pgsql-hackers by date

Next:From: Kris JurkaDate: 2006-06-04 01:02:07
Subject: Re: Going for "all green" buildfarm results
Previous:From: Bruce MomjianDate: 2006-06-04 00:09:09
Subject: Re: Possible TODO item: copy to/from pipe

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group