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 2CF4B9FA5E9 for ; Wed, 31 May 2006 17:10:40 -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 70740-04 for ; Wed, 31 May 2006 17:10:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5044A9FA5E1 for ; Wed, 31 May 2006 17:10:35 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k4VKAW7x015061; Wed, 31 May 2006 16:10:32 -0400 (EDT) To: Andreas Pflug cc: "Joshua D. Drake" , pgsql-hackers@postgresql.org Subject: Re: Possible TODO item: copy to/from pipe In-reply-to: <447DD1D7.20001@pse-consulting.de> 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> <447DD1D7.20001@pse-consulting.de> Comments: In-reply-to Andreas Pflug message dated "Wed, 31 May 2006 19:26:47 +0200" Date: Wed, 31 May 2006 16:10:32 -0400 Message-ID: <15060.1149106232@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/1353 X-Sequence-Number: 84218 Andreas Pflug writes: > 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. If you mean you're compressing each data field separately, that's surely a very bad idea. If you mean you're compressing everything except the file header, I fail to see the value. Binary is binary. I *seriously* doubt there are clients out there that look for a PGCOPY header before deciding whether to send the file to the server or not. And a client that did know that much about a PGCOPY file would likely spit up on a critical flag it didn't recognize, anyway. regards, tom lane