Re: pg_depend - Mailing list pgsql-hackers

From Hiroshi Inoue
Subject Re: pg_depend
Date
Msg-id 3B54F386.A3767EF9@tpf.co.jp
Whole thread Raw
In response to Re: pg_depend  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: pg_depend  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: pg_depend  (Philip Warner <pjw@rhyme.com.au>)
Re: pg_depend  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pg_depend  (Bill Studenmund <wrstuden@zembu.com>)
List pgsql-hackers
Bruce Momjian wrote:
> 
> > I like
> >       object relid
> >       object oid
> >       object name
> >       reference relid
> >       reference oid
> 
> Can I ask why you like the object name?
> 

Oops I made a mistake.
Reference name is needed not an object name,
i.eobject relidobject oidrelerence relidreference oidreference name
create table a (...);create view view_a as select .. from a;

Then we have an pg_depend entry e.g.
pg_class_relidoid of the view_apg_class_relidoid 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
thetable(unchanged)
 

regards,
Hiroshi Inoue


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: MySQL Gemini code
Next
From: Bruce Momjian
Date:
Subject: Re: pg_depend