Re: Foreign key bugs + other problems

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jan Wieck <JanWieck@Yahoo.com>
Cc: PostgreSQL HACKERS <pgsql-hackers@postgresql.org>
Date: 2000-07-11T21:47:58Z
Lists: pgsql-bugs, pgsql-hackers
> > Or, you might be able to make a case that you CANNOT shadow a table
> > that is referenced by a constraint (due to the permanent table constraints
> > cannot reference a temporary table restriction).  Since the creation of
> > the temp table would break the restriction, it is illegal.
> 
>     Good point. What does the standard say about it? Can a table,
>     referred   to  by  foreign  key  constraints  or  referential
>     actions, be shadowed by a temp table?

Maybe we should prevent shadowing of a table that is used as a foreign
key.


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