Re: setFetchSize

From: fschmidt <fschmidt(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: setFetchSize
Date: 2011-10-26 06:09:21
Message-ID: 1319609361329-4938781.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Okay I see the documentation saying portals die at the end of a transaction,
here:

http://developer.postgresql.org/pgdocs/postgres/protocol-flow.html#PROTOCOL-FLOW-EXT-QUERY

But looking at the JDBC code, the main use I see of portals is for
setFetchSize(). And setFetchSize() is badly crippled in its current
implementation. Is there any fundamental reason that portals can't be made
to survive commits, like cursors WITH HOLD? This would result in a
reasonable implementation of setFetchSize().

For now I have given up on setFetchSize() as useless for my application, and
I use "select ... order by something-unique limit fetch-size offset
how-much-has-been-read". This is a bad hack. I would much rather use a
functional implementation of setFetchSize(). Is there any chance I will get
one?

--
View this message in context: http://postgresql.1045698.n5.nabble.com/setFetchSize-tp4935215p4938781.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2011-10-26 06:31:26 Re: setFetchSize
Previous Message Tom Lane 2011-10-25 20:40:41 Re: setFetchSize