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

Re: Possible TODO item: copy to/from pipe

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Possible TODO item: copy to/from pipe
Date: 2006-05-31 16:30:07
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Andreas Pflug <pgadmin(at)pse-consulting(dot)de> writes:
> Forgot to mention:
> COPY COMPRESSED was also meant to introduce a portable format that's 
> efficient for both text and binary data. Relying on some external XYZzip 
> version seems not too portable to me.

I dislike putting this into the backend precisely because it's trying to
impose a one-size-fits-all compression solution.  Someone might wish to
use bzip2 instead of gzip, for instance, or tweak the compression level
options of gzip.  It's trivial for the user to do that if the
compression program is separate, not trivial at all if it's wired into
COPY.  Also, a pipe feature would have uses unrelated to compression,
such as on-the-fly analysis or generation of data.

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Andreas PflugDate: 2006-05-31 16:35:00
Subject: Re: Possible TODO item: copy to/from pipe
Previous:From: Tom LaneDate: 2006-05-31 16:26:21
Subject: Re: copy with compression progress n

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