> Then we have an pg_depend entry e.g.
> 
>       pg_class_relid
>       oid of the view_a
>       pg_class_relid
>       oid of the table a
>       'a' the name of the table
> 
> and so on.
> 
>  drop table a; (unadorned drop).
> 
> Then the above entry would be changed to
> 
>       pg_class_relid(unchanged)
>       oid of the view_s(unchagned)
>       pg_class_relid(unchanged)
>       InvalidOid
>       'a' the name of the table(unchanged)
> 
>  create table a (...);
> 
> Then the pg_depend entry would be
> 
>       pg_class_relid(unchanged)
>       oid of the view_s(unchagned)
>       pg_class_relid(unchanged)
>       the oid of the new table a
>       'a' the name of the table(unchanged)

So you want to keep the name of the referenced object in case it is
dropped.  Makes sense.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to