Re: Possible Bug regarding temp tables (sql or psql?) - Mailing list pgsql-sql

From Tom Lane
Subject Re: Possible Bug regarding temp tables (sql or psql?)
Date
Msg-id 7538.1025836376@sss.pgh.pa.us
Whole thread Raw
In response to Re: Possible Bug regarding temp tables (sql or psql?)  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Possible Bug regarding temp tables (sql or psql?)
List pgsql-sql
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> TODO has:
>     * Allow psql \d to show temporary table structure
> Looks like it works fine now with schemas:

More accurately, it's no more broken for temp tables than any other
tables at the moment.

regression=# create table foo (f1 int);
CREATE TABLE
regression=# create temp table foo (f1 text, f2 float);
CREATE TABLE
regression=# \d foo             Table "foo"Column |       Type       | Modifiers
--------+------------------+-----------f1     | integer          |f1     | text             |f2     | double precision
|

regression=#

Even uglier cases occur if some other connection has also created
a temp table named foo.  You should *not* see that in \d ... but
you will.

> I will mark the TODO as done.

It's not really done, but the remaining fixes will fall out of making
psql schema-aware.
        regards, tom lane




pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Possible Bug regarding temp tables (sql or psql?)
Next
From: Bruce Momjian
Date:
Subject: Re: Possible Bug regarding temp tables (sql or psql?)