From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Mark Frazer <mark@somanetworks.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Possible Bug regarding temp tables (sql or psql?)
Date: Thu, 04 Jul 2002 22:32:56 -0400
Message-ID: <7538.1025836376@sss.pgh.pa.us> (raw)
In-Reply-To: <200207050209.g6529RT19334@candle.pha.pa.us>
References: <200207050209.g6529RT19334@candle.pha.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, chriskl@familyhealth.com.au, mark@somanetworks.com, pgsql-sql@postgresql.org
Subject: Re: Possible Bug regarding temp tables (sql or psql?)
In-Reply-To: <7538.1025836376@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox