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

Sun, 09 Jul 2000 18:00:33 +1000
Philip Warner <pjw@rhyme.com.au>
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

Sun, 9 Jul 2000 12:27:30 -0400 (EDT)
Bruce Momjian <pgman@candle.pha.pa.us>
Re: Interesting featurette?