From: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> |
---|---|
To: | Bill Studenmund <wrstuden(at)zembu(dot)com> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alex Pilosov <alex(at)pilosoft(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_depend |
Date: | 2001-07-19 02:19:04 |
Message-ID: | 3B564398.DBDD67A7@tpf.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Bill Studenmund wrote:
>
> On Wed, 18 Jul 2001, Hiroshi Inoue wrote:
>
> > Oops I made a mistake.
> > Reference name is needed not an object name,
> > i.e
> > object relid
> > object oid
> > relerence relid
> > reference oid
> > reference name
> >
> > create table a (...);
> > create view view_a as select .. from a;
> >
> > 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)
>
> This step I disagree with. Well, I disagree with the automated aspect of
> the update. How does postgres know that the new table a is sufficiently
> like the old table that it should be used? A way the DBA could say, "yeah,
> restablish that," would be fine.
>
You could DROP a table with CASCADE or RESTRICT keyword if
you hate the behavior.
regards,
Hiroshi Inoue
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-07-19 02:42:00 | RPM source files should be in CVS (was Re: psql -l) |
Previous Message | Tom Lane | 2001-07-19 01:29:19 | Re: OID wraparound (was Re: pg_depend) |