Re: relation 12345 is still open - Mailing list pgsql-novice

From Tom Lane
Subject Re: relation 12345 is still open
Date
Msg-id 1252.1171039358@sss.pgh.pa.us
Whole thread Raw
In response to Re: relation 12345 is still open  (Johannes Bruegmann <johannes@jottbee.org>)
Responses Re: relation 12345 is still open  (Johannes Bruegmann <johannes@jottbee.org>)
List pgsql-novice
Johannes Bruegmann <johannes@jottbee.org> writes:
>>> What does it mean "relation 50435 is still open"?
>>
>> What this probably means is that there is an active query somewhere
>> within your session that is referencing that table --- such as an
>> unclosed cursor or unfinished plpgsql FOR-in-SELECT loop.

> Thank you very much for your prompt answer.

>> I don't see any such thing in the functions you showed us, but look
>> around in the rest of your application.

> I couldn't see anything either, but it has to be in the code i
> showed. Because if I implement it the way like [1], everything is
> working fine.

Hmm.  Well, it could be a bug --- something hanging onto a relation
reference that it shouldn't have.  What PG version are you using
exactly?  Can you put together a self-contained test case, that is
a SQL script someone else could run to duplicate the error?

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Transaction vs. Savepoints
Next
From: James Long
Date:
Subject: Re: Transaction vs. Savepoints