Re: plpgsql TEMP table issue not fixed in 8.1? - Mailing list pgsql-bugs

From Neil Conway
Subject Re: plpgsql TEMP table issue not fixed in 8.1?
Date
Msg-id 1134759391.9142.46.camel@localhost.localdomain
Whole thread Raw
In response to Re: plpgsql TEMP table issue not fixed in 8.1?  ("Jim Klo" <jklo@webassociates.com>)
List pgsql-bugs
On Thu, 2005-12-15 at 11:09 -0800, Jim Klo wrote:
> I’m having a similar problem:
>
> ERROR:  relation with OID 7121526 does not exist
> CONTEXT:  SQL statement "SELECT  * INTO  temp tmp_resourcequeue from resourcequeue where timeblockid in (select
timeblockidfrom tmp_timeblock)" 
> PL/pgSQL function "archivetimeblocks" line 54 at SQL statement
>
> Works the first time, but not the second… even tho the temp table has been explicitly dropped between executions.
>
> Is there a fix or workaround for this yet?

Only the workarounds that have always existed: drop and recreate the
function, disconnect and then reconnect the client application, or
reference the temp table using EXECUTE only. The underlying problem
(invalidation of cached query plans) has not yet been fixed.

-Neil

pgsql-bugs by date:

Previous
From: Jon Keating
Date:
Subject: Re: BUG #2116: Searching text fields does not work in EUC_JP
Next
From: Alvaro Herrera
Date:
Subject: Re: Postgres 8.1 hangs at boot time due to password authentication for user postgres.