Re: pg_depend

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Re: pg_depend
Дата
Msg-id 3.0.5.32.20010718130815.03071200@mail.rhyme.com.au
обсуждение исходный текст
Ответ на Re: pg_depend  (Hiroshi Inoue <Inoue@tpf.co.jp>)
Ответы Re: pg_depend  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Re: pg_depend  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_depend
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Full Text Indexing