pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: List <pgsql-jdbc@postgresql.org>
Subject: Re: Disk buffering of resultsets
Date: Mon, 22 Sep 2014 14:17:36 -0700
Message-ID: <542091F0.10706@hogranch.com> (raw)
In-Reply-To: <CAHKhnVX5qxNOCBFXwivt1Mwzdaru9hoG9wCviAKUj9Dcmnu=0w@mail.gmail.com>
References: <CAHKhnVUW9hu9ePD9zeVmvkeRjK8VaO9_jVDdqiNPf8=xBkaM1Q@mail.gmail.com>
	<541E7FC3.3000201@2ndquadrant.com>
	<3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com>
	<54205F94.9010102@hogranch.com>
	<CAHKhnVX5qxNOCBFXwivt1Mwzdaru9hoG9wCviAKUj9Dcmnu=0w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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



view thread (37+ messages)  latest in thread

Message-ID: <542091F0.10706@hogranch.com>
Permalink:  ../542091F0.10706@hogranch.com/
Also on:    postgresql.org/message-id/542091F0.10706@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: Disk buffering of resultsets
  In-Reply-To: <542091F0.10706@hogranch.com>
  References: <CAHKhnVUW9hu9ePD9zeVmvkeRjK8VaO9_jVDdqiNPf8=xBkaM1Q@mail.gmail.com> <541E7FC3.3000201@2ndquadrant.com> <3F6D0B4E-2FA9-42D0-8C2C-DC68E6D0D641@gmail.com> <54205F94.9010102@hogranch.com> <CAHKhnVX5qxNOCBFXwivt1Mwzdaru9hoG9wCviAKUj9Dcmnu=0w@mail.gmail.com> <542091F0.10706@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox