Re: setFetchSize - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: setFetchSize
Date
Msg-id CA+0W9LOF3VN72OhmsJdQyT0AWyXUxUcBBJRgDpzOK=zeYSX9xg@mail.gmail.com
Whole thread Raw
In response to Re: setFetchSize  (John R Pierce <pierce@hogranch.com>)
List pgsql-jdbc
On 26 October 2011 19:37, John R Pierce <pierce@hogranch.com> wrote:
> On 10/25/11 11:09 PM, fschmidt wrote:
>>
>> Okay I see the documentation saying portals die at the end of a
>> transaction,
>> here:
>
> I'm surprised you can make /any/ other queries on that connection with an
> unfinished portal.
>
> I'm pretty sure if I needed to have an open transfer while executing another
> transaction, I'd use more than one connection.

You probably want to reread the protocol docs. Portals are very
similar to SQL cursors and while the portal does indeed monopolize the
connection while it is executing, you don't have to fetch all the
results from a portal in one go.

Oliver

pgsql-jdbc by date:

Previous
From: John R Pierce
Date:
Subject: Re: setFetchSize
Next
From: Dave Cramer
Date:
Subject: Re: setFetchSize