X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C1DCE9FA6B0 for ; Wed, 31 May 2006 14:27:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 86146-08 for ; Wed, 31 May 2006 14:27:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by postgresql.org (Postfix) with ESMTP id C88609FA5E9 for ; Wed, 31 May 2006 14:27:14 -0300 (ADT) Received: from [84.143.7.134] (helo=pse.dyndns.org) by mrelayeu.kundenserver.de (node=mrelayeu10) with ESMTP (Nemesis), id 0ML31I-1FlUT42HBS-0006Az; Wed, 31 May 2006 19:26:51 +0200 Received: from pse1 ([192.168.0.3]) by pse.dyndns.org with esmtp (Exim 4.44) id 1FlUT1-0004tx-O6; Wed, 31 May 2006 19:26:47 +0200 Message-ID: <447DD1D7.20001@pse-consulting.de> Date: Wed, 31 May 2006 19:26:47 +0200 From: Andreas Pflug User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Joshua D. Drake" CC: Tom Lane , pgsql-hackers@postgresql.org Subject: Re: Possible TODO item: copy to/from pipe References: <12436.1149087794@sss.pgh.pa.us> <447DB844.6010507@pse-consulting.de> <447DB910.2020607@pse-consulting.de> <13208.1149093007@sss.pgh.pa.us> <447DCFAF.4070308@commandprompt.com> In-Reply-To: <447DCFAF.4070308@commandprompt.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:0ce7ee5c3478b8d72edd8e05ccd40b70 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/1338 X-Sequence-Number: 84203 Joshua D. Drake wrote: >> >> 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. > > > It seems that it would be better to have the options within pg_dump > which would give the most flexibility. What about all other client tools? My COPY WITH COMPRESSION is not the same as taking a copy file and zipping it; it creates a copy file with BinarySignature that has compressed bytes in the data part, thus it can be handled by any client app that can stream binary copy files from/to the server. Regards, Andreas