From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Murray Prior Hobbs <murray@efone.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: temporary tables, plpgsql and yes i bet this has been asked
Date: Mon, 4 Feb 2002 09:13:54 -0500 (EST)
Message-ID: <200202041413.g14EDtM22394@candle.pha.pa.us> (raw)
In-Reply-To: <3C5E6329.3000805@efone.com>
Murray Prior Hobbs wrote:
>
> in a plpgsql function
>
> create temporary table X
>
> ....
>
>
> drop table X
>
>
> then in another function
>
> loop
>
> call the other function
>
> end loop
>
>
> i get the problem that the second time the table is created (ie in the
> second call) it is not visible
>
> now yes i could declare the table in the calling funtion but then the
> original function is less useful to me
Interesting. Can you recreate the problem in psql without the functions
and show an example? I am confused how this could be failing.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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-sql@postgresql.org
Cc: pgman@candle.pha.pa.us, murray@efone.com
Subject: Re: temporary tables, plpgsql and yes i bet this has been asked
In-Reply-To: <200202041413.g14EDtM22394@candle.pha.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