pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Wimmer <seppwimmer@hotmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: temporary table / recursion
Date: Sun, 11 Feb 2007 12:41:16 -0500
Message-ID: <1940.1171215676@sss.pgh.pa.us> (raw)
In-Reply-To: <BAY122-F365C119161ABEB19E76AE6D0920@phx.gbl>
References: <BAY122-F365C119161ABEB19E76AE6D0920@phx.gbl>

"Robert Wimmer" <seppwimmer@hotmail.com> writes:
> i cannot drop a temporary table that was created in a plpgsql function.

It was created with "on commit drop".  Are you sure it still exists?

The problem looks to me like the well-known issue that plpgsql caches
plans, and so you can't have it refer to different temp tables on
successive executions (in the same session) unless you use EXECUTE.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <1940.1171215676@sss.pgh.pa.us>
Permalink:  ../1940.1171215676@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1940.1171215676@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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, seppwimmer@hotmail.com
  Subject: Re: temporary table / recursion
  In-Reply-To: <1940.1171215676@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