pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Gagnon <dgagnon@siunik.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Is that normal I can't commit a transaction when using refcursor in a stored procedure
Date: Tue, 22 Mar 2005 14:28:16 -0500
Message-ID: <11227.1111519696@sss.pgh.pa.us> (raw)
In-Reply-To: <42406D17.60104@siunik.com>
References: <4237FC9B.4000709@cibal.es>
	<4238173D.60307@opencloud.com>
	<4239A678.10204@cibal.es>
	<42406D17.60104@siunik.com>

David Gagnon <dgagnon@siunik.com> 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



view thread (3+ messages)  latest in thread

Message-ID: <11227.1111519696@sss.pgh.pa.us>
Permalink:  ../11227.1111519696@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11227.1111519696@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, dgagnon@siunik.com
  Subject: Re: Is that normal I can't commit a transaction when using refcursor in a stored procedure
  In-Reply-To: <11227.1111519696@sss.pgh.pa.us>
  References: <4237FC9B.4000709@cibal.es> <4238173D.60307@opencloud.com> <4239A678.10204@cibal.es> <42406D17.60104@siunik.com> <11227.1111519696@sss.pgh.pa.us>

* 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