Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWAzZ-0004Gc-QG for pgsql-jdbc@arkaria.postgresql.org; Mon, 22 Sep 2014 21:17:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWAzZ-0002Bj-1Q for pgsql-jdbc@arkaria.postgresql.org; Mon, 22 Sep 2014 21:17:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWAzY-0002Bc-1M for pgsql-jdbc@postgresql.org; Mon, 22 Sep 2014 21:17:52 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWAzU-0000WJ-F1 for pgsql-jdbc@postgresql.org; Mon, 22 Sep 2014 21:17:49 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s8MLHfZ17199 for ; Mon, 22 Sep 2014 14:17:41 -0700 Message-ID: <542091F0.10706@hogranch.com> Date: Mon, 22 Sep 2014 14:17:36 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: List Subject: Re: Disk buffering of resultsets References: <541E7FC3.3000201@2ndquadrant.com> <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com> <54205F94.9010102@hogranch.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 9/22/2014 2:04 PM, Lussier, Denis wrote: > I like Craig's idea to use the jdk7 temp file handling. I propose to > this project keep it simple (at least at first) and start with this as > a jdbc41 only feature. > > Many people use pgjdbc for OLTP style transactions and wouldn't ever > want to spill to disk. This is why (IMHO) the algorithm that > determines under which stress > condition this feature uses (assuming it is enabled) is so critical. > this still won't address the issue that the postgresql server itself ALSO marshals the entire result set into ITS memory before sending it to the client. Really, using cursors for large result-sets is the correct way to go. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc