Re: display temp table structure? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: display temp table structure?
Date
Msg-id 200103130006.TAA27894@candle.pha.pa.us
Whole thread Raw
In response to Re: display temp table structure?  (Limin Liu <limin@pumpkinnet.com>)
Responses Re: display temp table structure?
List pgsql-general
> Thanx Bruce
>
> What I found is something like pg_temp.25865.0.   Do we have some kind of
> mapping table between the "real temp table name" and pg_temp*.   If there
> are more than one temp tables, I need a way to differentiate them.
>
> Thanks for your help

There is no user-visible mapping, though the number is the process id.
You could use that.  I think you can get the backend process id somehow,
but I am not sure how.  Anyone?

--
  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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Postgresql 7.1 Beta 5, Postmaster dead
Next
From: Joseph Shraibman
Date:
Subject: Re: -F option again