From: Radosław Smogura <rsmogura@softperience.eu>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Jean-Max Reymond <jmreymond@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: behavior at the end of a transaction
Date: Tue, 20 Sep 2011 11:36:01 +0200
Message-ID: <e6183bea6ede88fc21eb7639f83adfc4@mail.softperience.eu> (raw)
In-Reply-To: <4E7760FB02000025000413A1@gw.wicourts.gov>
References: <j5876g$ilo$1@news.hub.org>
<4E7760FB02000025000413A1@gw.wicourts.gov>
On Mon, 19 Sep 2011 15:34:19 -0500, Kevin Grittner wrote:
> Jean-Max Reymond <jmreymond@gmail.com> wrote:
>
>> On commit or rollback statement, I expect that all the cursors
>> are closed (all my Resultset not closed) in the postgres database.
>> is it correct ?
>
> No.
>
> http://www.postgresql.org/docs/9.1/interactive/sql-declare.html
>
> In particular, see the WITH/WITHOUT HOLD section.
>
> -Kevin
Don't worry, If you "forget" result sets, when those will be GCed then
cursors will be closed soon, too.
Regards,
Radosław Smogura
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: rsmogura@softperience.eu, Kevin.Grittner@wicourts.gov, jmreymond@gmail.com
Subject: Re: behavior at the end of a transaction
In-Reply-To: <e6183bea6ede88fc21eb7639f83adfc4@mail.softperience.eu>
References: <j5876g$ilo$1@news.hub.org> <4E7760FB02000025000413A1@gw.wicourts.gov> <e6183bea6ede88fc21eb7639f83adfc4@mail.softperience.eu>
* 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