Interesting featurette?

Started by Philip Warnerover 25 years ago2 messages
#1Philip Warner
pjw@rhyme.com.au

zzz=# create table zzz(f1 int4);
zzz=# create temporary table zzz(f1 int4);

...works

zzz=# create temporary table zzz(f1 int4);
zzz=# create table zzz(f1 int4);
ERROR: Relation 'zzz' already exists

Is this a problem?

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

#2Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Philip Warner (#1)
Re: Interesting featurette?

zzz=# create table zzz(f1 int4);
zzz=# create temporary table zzz(f1 int4);

...works

zzz=# create temporary table zzz(f1 int4);
zzz=# create table zzz(f1 int4);
ERROR: Relation 'zzz' already exists

Is this a problem?

Temporary tables mask real tables. Real tables can't mask temporary
tables. This is the way it should be, I think.

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