X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A1EFB52A4F for ; Tue, 22 Mar 2005 19:28:26 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 46530-05 for ; Tue, 22 Mar 2005 19:28:17 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B388852A62 for ; Tue, 22 Mar 2005 19:28:15 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j2MJSGDq011228; Tue, 22 Mar 2005 14:28:16 -0500 (EST) To: David Gagnon Cc: pgsql-jdbc@postgresql.org Subject: Re: Is that normal I can't commit a transaction when using refcursor in a stored procedure In-reply-to: <42406D17.60104@siunik.com> References: <4237FC9B.4000709@cibal.es> <4238173D.60307@opencloud.com> <4239A678.10204@cibal.es> <42406D17.60104@siunik.com> Comments: In-reply-to David Gagnon message dated "Tue, 22 Mar 2005 14:08:07 -0500" Date: Tue, 22 Mar 2005 14:28:16 -0500 Message-ID: <11227.1111519696@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/179 X-Sequence-Number: 12571 David Gagnon writes: > CREATE TEMP TABLE T_AUX ( > ... > ) ON COMMIT DROP''; > WARN [http8080-Processor4] (DbConnection.java:218) 2005-03-22 > 13:51:55,359 : DB: Error commiting Transaction: ERROR: relation 6013057 > is still open Is this temp table used in your cursor? If so this is a recently-fixed server bug ("recent" = 7.4.7 and later, I think). It was trying to drop ON COMMIT DROP tables before closing cursors... regards, tom lane