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 787899FA5E9 for ; Wed, 31 May 2006 16:52:29 -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 67519-07 for ; Wed, 31 May 2006 16:52:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (Postfix) with ESMTP id 1A61D9FA5E1 for ; Wed, 31 May 2006 16:52:22 -0300 (ADT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 4.42) id 1FlWjt-0007cY-3Z for pgsql-hackers@postgresql.org; Wed, 31 May 2006 19:52:21 +0000 Received: from 84.13.251.55 ([84.13.251.55]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Wed, 31 May 2006 19:52:21 +0000 User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Wed, 31 May 2006 20:55:17 +0100 Subject: Re: Possible TODO item: copy to/from pipe From: Dave Page To: Magnus Hagander , Andreas Pflug CC: Tom Lane , Message-ID: Thread-Topic: [HACKERS] Possible TODO item: copy to/from pipe Thread-Index: AcaE0Eh8D3AyxnWKS46Y515FLXnF/wABxwDgAAUvw4s= In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCEA3546D@algol.sollentuna.se> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/1347 X-Sequence-Number: 84212 On 31/5/06 18:28, "Magnus Hagander" 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. > > For the record, gzip on win32 works perfectly fine both as a separate > program and running in a pipe. No problem at all. The only issue is that > it's not available by default. (And possible issues with programs > launching it that don't know how to deal with windows style directory > naming) Exactly my point; how many production Windows servers do you have with gzip anywhere near them? Andreas' point about pipes is also valid though - it's simply not the norm on Windows as I found when we were porting Slony (more.exe barfs at >8MB being pipe in). Regards, Dave.