Re: pg_depend - Mailing list pgsql-hackers

From Philip Warner
Subject Re: pg_depend
Date
Msg-id 3.0.5.32.20010718130815.03071200@mail.rhyme.com.au
Whole thread Raw
In response to Re: pg_depend  (Hiroshi Inoue <Inoue@tpf.co.jp>)
Responses Re: pg_depend
Re: pg_depend
List pgsql-hackers
At 11:25 18/07/01 +0900, 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
>

I think any deisgn needs to cater for attr dependencies. eg.
   create table a (f1 int4, f2 int8);   create view view_a as select f2 from a;

Then
   alter table a drop f1; -- Is OK. Should just happen   alter table a drop f2; -- Should warn about the view, and/or
cascadeetc.   alter table a alter f2 float; -- Should trigger a view recompilation.
 

...same thing needs to happen with constraints that reference attrs

I *think* tables are the only items that can have subobjects with dependant.


----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 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   |/


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_depend
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Full Text Indexing