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 ABA509FA5E9 for ; Wed, 31 May 2006 16:30:47 -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 63439-10 for ; Wed, 31 May 2006 16:30:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from trolak.mydnsbox2.com (ns1.mydnsbox2.com [207.44.142.118]) by postgresql.org (Postfix) with ESMTP id 9A9B99FA5E1 for ; Wed, 31 May 2006 16:30:38 -0300 (ADT) Received: from [192.168.1.227] (68.143.134.146.nw.nuvox.net [68.143.134.146]) (authenticated (0 bits)) by trolak.mydnsbox2.com (8.11.6/8.11.6) with ESMTP id k4VIsJc24351; Wed, 31 May 2006 13:54:19 -0500 Message-ID: <447DEED7.70306@dunslane.net> Date: Wed, 31 May 2006 15:30:31 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060201 SeaMonkey/1.0 MIME-Version: 1.0 To: David Fetter CC: Andreas Pflug , Chris Browne , pgsql-hackers@postgresql.org Subject: Re: Possible TODO item: copy to/from pipe References: <447DC5B4.4080407@pse-consulting.de> <60ac8yt74e.fsf@dba2.int.libertyrms.com> <447DDCC3.7040304@pse-consulting.de> <447DE485.6040402@dunslane.net> <20060531191348.GK27220@fetter.org> In-Reply-To: <20060531191348.GK27220@fetter.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/1344 X-Sequence-Number: 84209 David Fetter wrote: > On Wed, May 31, 2006 at 02:46:29PM -0400, Andrew Dunstan wrote: > > >> I wish somebody would explain to me the compelling use case for >> this. >> > > As with "in-place upgrades,"[1] the compelling use case is being short > on disk space. For somebody with a multi-TB (or whatever figure > sounds big this week) PostgreSQL database, it may be impossible to get > space for twice or more that. Giving people the option to stream > COPYs through a pipe would alleviate a lot of pain. > > Cheers, > D > > [1] A feature people seem to think we don't need, although convincing > cases have been made for it. > But why is that hugely better than piping psql output to gzip? The Unix philosophy is to use small chains of tools rather than put everything into one big tool. Thus, this is quite unlike inplace upgrade, which I agree would be great (and where I would far rather see people spend their efforts), because unlike for this "feature" there is no viable alternative. cheers andrew