Re: idea to have driver return immediately after a query

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

Dave Cramer <pg(at)fastcrypt(dot)com> wrote:

> The problem here is that you can execute as many statements as you
> want on a connection, so having all of the statements block on the
> first statement or reading all of the first statements data
> doesn't solve the problem since you could run out of memory
> reading the first statements' data.

It doesn't solve it for all cases, but it would make the default
behavior for many common usages more efficient. FWIW, it would
match the behavior of the Sybase and MS SQL Server JDBC drivers, at
least last I used them.

As I said earlier in the thread, I think we may need a new protocol
version to have a really nice implementation which completely solves
the problem. People are talking about that anyway, for a variety of
reasons, so we should make sure that if that effort moves forward
the new protocol can gracefully handle this case along with solving
the other problems people want to address.

-Kevin

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2011-03-28 22:13:54 Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4
Previous Message Dave Cramer 2011-03-28 15:06:06 Re: Problems with Hibernate Discriminators and 9.0-801.jdbc4