Re: aliases for temp tables....

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alfonso Peniche <alfonso(at)iteso(dot)mx>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: aliases for temp tables....
Date: 2001-02-18 05:36:34
Message-ID: 11045.982474594@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alfonso Peniche <alfonso(at)iteso(dot)mx> writes:
> I've been looking everywhere and I can't find this:
> Everytime I create a temp table (Thanx Tom) within a procedure, a table
> named like pg_temp.###.# is created (I know this is MY temp table). How
> can I know the name (or alias) for this table so that I can, later on,
> check if it already exists.

AFAIK there is no way to retrieve the temp-table name mapping from the
backend. Sorry ...

When we implement schemas (hopefully for 7.2) perhaps it will be
possible to reimplement temp tables in a slightly less klugy way,
so that this sort of problem goes away.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2001-02-18 05:53:49 Re: aliases for temp tables....
Previous Message Katsuyuki Tanaka 2001-02-18 04:27:47 IPC Shared Memory