Re: Inheritance and foreign keys

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Inheritance and foreign keys
Дата
Msg-id 20031209081755.X56823@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: Inheritance and foreign keys  (Jan Wieck <JanWieck@Yahoo.com>)
Ответы Re: Inheritance and foreign keys
Список pgsql-general
On Tue, 9 Dec 2003, Jan Wieck wrote:

> Stephan Szabo wrote:
> > On Tue, 9 Dec 2003, Brendan Jurd wrote:
> >
> > As a note, there are workarounds for foreign keys that have been mentioned
> > in the past.  I'm not really sure anyone's post a real good workaround for
> > unique though.
>
> Wouldn't a central table just holding the unique key values and
> maintained by rules/triggers from all the tables in the inheritance tree
> do the trick?
>
> That central table would be the referenced one too then, because it
> contains the union of all keys.

That's the general thing for the fks and I guess the insert into the
central table should have the correct behavior in concurrent calls as
well.


В списке pgsql-general по дате отправления:

Предыдущее
От: "Corey W. Gibbs"
Дата:
Сообщение: PG and AIX
Следующее
От: "Patrick Hatcher"
Дата:
Сообщение: Re: Pg_Dump of schema?