| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Murray Prior Hobbs <murray(at)efone(dot)com> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: temporary tables, plpgsql and yes i bet this has been asked |
| Date: | 2002-02-04 14:13:54 |
| Message-ID: | 200202041413.g14EDtM22394@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Eckermann | 2002-02-04 15:05:30 | Re: casting question |
| Previous Message | Murray Prior Hobbs | 2002-02-04 10:32:09 | temporary tables, plpgsql and yes i bet this has been asked before |