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 C2CFD9FA5E9 for ; Wed, 31 May 2006 14:17:44 -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 82007-09 for ; Wed, 31 May 2006 14:17:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from projects.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 377839FA5E1 for ; Wed, 31 May 2006 14:17:37 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.sprint-hsd.net [67.76.146.141]) (authenticated bits=0) by projects.commandprompt.com (8.13.6/8.13.6) with ESMTP id k4VHHc6W013982; Wed, 31 May 2006 10:17:38 -0700 Message-ID: <447DCFAF.4070308@commandprompt.com> Date: Wed, 31 May 2006 10:17:35 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.2 (X11/20060521) MIME-Version: 1.0 To: Tom Lane CC: Andreas Pflug , 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> In-Reply-To: <13208.1149093007@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (projects.commandprompt.com [192.168.2.159]); Wed, 31 May 2006 10:17:39 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/1337 X-Sequence-Number: 84202 > > 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. Sincerely, Joshua D. Drake -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/