Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A57D16340DD for ; Fri, 2 Apr 2010 19:18:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50899-08 for ; Fri, 2 Apr 2010 22:18:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from serenity.inversion.ee (serenity.inversion.ee [194.204.33.112]) by mail.postgresql.org (Postfix) with ESMTP id 3396263402F for ; Fri, 2 Apr 2010 19:18:09 -0300 (ADT) Received: by serenity.inversion.ee (Postfix, from userid 108) id 0E53AE34635; Sat, 3 Apr 2010 00:04:12 +0300 (EEST) Received: from [IPv6:::1] (localhost [127.0.0.1]) by serenity.inversion.ee (Postfix) with ESMTP id 2A477E341D6; Sat, 3 Apr 2010 00:04:11 +0300 (EEST) Subject: Re: Does the psql executable support a "fetch many" approach when dumping large queries to stdout? From: Hannu Krosing To: "Beaver, John E" Cc: "pgsql-performance@postgresql.org" In-Reply-To: <62307826D0C1F74BAFE47B6747FA8C2C5407AED155@ITCCRMAIL02.MED.HARVARD.EDU> References: <62307826D0C1F74BAFE47B6747FA8C2C5407AED155@ITCCRMAIL02.MED.HARVARD.EDU> Content-Type: text/plain; charset="UTF-8" Date: Sat, 03 Apr 2010 01:18:08 +0300 Message-ID: <1270246688.6482.263.camel@hvost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201004/50 X-Sequence-Number: 38300 On Fri, 2010-04-02 at 16:28 -0400, Beaver, John E wrote: ... > I know that the query used here could have been a COPY statement, which I assume would > be better-behaved, but I'm more concerned about the case in which the query is more complex. COPY can copy out results of a SELECT query as well. -- Hannu Krosing http://www.2ndQuadrant.com PostgreSQL Scalability and Availability Services, Consulting and Training