On Thu, 2005-12-15 at 11:09 -0800, Jim Klo wrote:
> Im 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