Re: Possible Bug regarding temp tables (sql or psql?)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Mark Frazer <mark(at)somanetworks(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Possible Bug regarding temp tables (sql or psql?)
Date: 2002-07-05 02:32:56
Message-ID: 7538.1025836376@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-sql

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2002-07-05 02:39:30 Re: Possible Bug regarding temp tables (sql or psql?)
Previous Message Bruce Momjian 2002-07-05 02:09:27 Re: Possible Bug regarding temp tables (sql or psql?)

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2002-07-05 02:39:30 Re: Possible Bug regarding temp tables (sql or psql?)
Previous Message Bruce Momjian 2002-07-05 02:09:27 Re: Possible Bug regarding temp tables (sql or psql?)