Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 00A99B5DC51 for ; Wed, 21 Sep 2011 08:30:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 32878-02 for ; Wed, 21 Sep 2011 11:30:05 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id C557FB5DC00 for ; Wed, 21 Sep 2011 08:30:03 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id p8LBU3Y6037056 for ; Wed, 21 Sep 2011 08:30:03 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id p8LB5jt3096000 for pgsql-jdbc@postgresql.org; Wed, 21 Sep 2011 08:05:45 -0300 (ADT) (envelope-from news) From: Jean-Max Reymond X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: behavior at the end of a transaction Date: Wed, 21 Sep 2011 13:05:44 +0200 Organization: Hub.Org Networking Services Lines: 21 Message-ID: References: <4E7760FB02000025000413A1@gw.wicourts.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13 In-Reply-To: To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.993 tagged_above=-10 required=5 tests=BAYES_05=-0.5, FREEMAIL_FROM=0.001, RP_MATCHES_RCVD=-0.504, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201109/79 X-Sequence-Number: 22197 Le 20/09/2011 11:36, Radosław Smogura a écrit : > On Mon, 19 Sep 2011 15:34:19 -0500, Kevin Grittner wrote: >> Jean-Max Reymond 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. no sure that GC will free the ressources in the postgres database