Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0C78F1337B8D for ; Thu, 4 Nov 2010 11:38:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 76258-03 for ; Thu, 4 Nov 2010 14:38:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from rome.boulder.noaa.gov (rome.boulder.noaa.gov [140.172.10.146]) by mail.postgresql.org (Postfix) with ESMTP id CB23B1337B81 for ; Thu, 4 Nov 2010 11:38:22 -0300 (ADT) Received: from [137.75.201.47] (tripledrop.fsl.noaa.gov [137.75.201.47]) by email.boulder.noaa.gov (iPlanet Messaging Server 5.2 HotFix 2.01 (built Aug 26 2004)) with ESMTPA id <0LBD004T67BZJZ@email.boulder.noaa.gov> for pgsql-performance@postgresql.org; Thu, 04 Nov 2010 14:38:23 +0000 (GMT) Date: Thu, 04 Nov 2010 14:38:23 +0000 From: Nick Matheson Subject: Re: Simple (hopefully) throughput question? In-reply-to: <4CD19E84.7070204@squeakycode.net> To: Andy Colson Cc: pgsql-performance@postgresql.org Message-id: <4CD2C55F.3040307@noaa.gov> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 2.0.0.24 (X11/20101005) References: <4CD1853F.2010800@noaa.gov> <4CD19E84.7070204@squeakycode.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/36 X-Sequence-Number: 41060 Andy- > I have no idea if this would be helpful or not, never tried it, but > when you fire off "select * from bigtable" pg will create the entire > resultset in memory (and maybe swap?) and then send it all to the > client in one big lump. You might try a cursor and fetch 100-1000 at > a time from the cursor. No idea if it would be faster or slower. I am pretty sure we have tried paged datasets and didn't see any improvement. But we will put this on our list of things to double check, better safe than sorry you know. Thanks, Nick