Re: temp tables not dropping at end of script - Mailing list pgsql-general

From jonathansfl
Subject Re: temp tables not dropping at end of script
Date
Msg-id 1307979163586-4484759.post@n5.nabble.com
Whole thread Raw
In response to temp tables not dropping at end of script  ("Davenport, Julie" <JDavenport@ctcd.edu>)
List pgsql-general
we're having a similar situation, where FunctionA calls FunctionB inside a
cursor. FunctionB DROPs Temp table, then creates temp table. FunctionA runs
through the cursor fine but breaks after the last loop, unable to DROP
temporary table "because it is being used by active queries in this
session."

Those sessions should have been closed after each loop!

Here is my ticket on this:

http://postgresql.1045698.n5.nabble.com/Can-t-drop-temp-table-in-subfunction-during-cursor-loop-being-used-by-active-queries-td4482806.html#a4484134

Here is another similar (and unanswered) ticket:
http://forums.enterprisedb.com/posts/list/849.page


--
View this message in context:
http://postgresql.1045698.n5.nabble.com/temp-tables-not-dropping-at-end-of-script-tp4286391p4484759.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Re: Can't drop temp table in subfunction during cursor loop (being used by active queries)
Next
From: Bruno Wolff III
Date:
Subject: Bad link to beta2 source