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 E81759FA5E1 for ; Wed, 31 May 2006 15:04:18 -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 95777-10 for ; Wed, 31 May 2006 15:04:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 0B1429FA5E9 for ; Wed, 31 May 2006 15:04:08 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id EB98831D9F; Wed, 31 May 2006 20:04:06 +0200 (MET DST) From: Chris Browne X-Newsgroups: pgsql.hackers Subject: Re: Possible TODO item: copy to/from pipe Date: Wed, 31 May 2006 13:51:45 -0400 Organization: cbbrowne Computing Inc Lines: 38 Message-ID: <60ac8yt74e.fsf@dba2.int.libertyrms.com> References: <447DC5B4.4080407@pse-consulting.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:l9LZCqV1h+/UwbHkYu0xFxCpnHM= To: pgsql-hackers@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/1340 X-Sequence-Number: 84205 pgadmin@pse-consulting.de (Andreas Pflug) writes: > Dave Page wrote: >> >>>-----Original Message----- >>> From: pgsql-hackers-owner@postgresql.org >>> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Andreas >>> Pflug >>>Sent: 31 May 2006 16:41 >>>Cc: Tom Lane; pgsql-hackers@postgresql.org >>>Subject: Re: [HACKERS] Possible TODO item: copy to/from pipe >>> >>>Andreas Pflug wrote: >>> >>> >>>> Won't help too much, until gzip's output is piped back too, so a >>>> replacement for COPY .. TO STDOUT COMPRESSED would be >>>> COPY ... TO '| /bin/gzip |' STDOUT, to enable clients to >>> >>> receive the >>> >>>>reduced stuff. >>> >>>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. >> It does have that advantage. Gzip and others are not particularly >> Windows friendly for example. > > ... as most windows programs are pipe agnostic. Shall we make PostgreSQL less powerful because of that? -- "cbbrowne","@","cbbrowne.com" http://cbbrowne.com/info/advocacy.html "Love is like a snowmobile flying over the frozen tundra that suddenly flips, pinning you underneath. At night, the ice weasels come." -- Matt Groening