Re: idea to have driver return immediately after a query

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pg(at)fastcrypt(dot)com>,<oliver(at)opencloud(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: idea to have driver return immediately after a query
Date: 2011-03-27 13:42:18
Message-ID: 4D8EF86A020000250003BCAD@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Oliver Jowett wrote:

> What happens if the app then wants to run another query before
> reading the resultset?

Some JDBC drivers I've used do read the entire original ResultSet
into the heap when that happens. If we redo the protocol, there
would probably be a way to design a better solution.

> I'm a little worried about error handling too.

Any code written for portability would deal with it, since most
drivers stream the results and can throw exceptions on next(). (It
is declared to throw that in the interface, after all.) I don't know
whether there is PostgreSQL specific code with assumes that the
declared exception won't happen, but if that's a significant issue,
it could be solved by supporting both techniques and adding a
connection property. I before going that far, I'd want to ensure
someone actually needed that, though.

-Kevin

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2011-03-27 14:10:07 Re: idea to have driver return immediately after a query
Previous Message Kevin Grittner 2011-03-27 13:31:33 Re: JDBC gripe list