Re: inheritance question 2/ref integrity

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: inheritance question 2/ref integrity
Дата
Msg-id Pine.BSF.4.10.10010071739090.13099-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на inheritance question 2/ref integrity  (Alex Pilosov <alex@pilosoft.com>)
Список pgsql-hackers
On Sat, 7 Oct 2000, Alex Pilosov wrote:

> Can I do  following?
> 
> create table foo (
> x int4 references bar*
> )
> 
> Or, since 7.1 will have bar* as default for bar, will using 'references
> bar' do what I want?

No, and not really.  Parts of it may sort of work, but referential
actions will definately fail (this includes the default no action)
because I don't believe triggers inherit in an automatic fashion.

Also, at least under 7.0 and earlier, constraints don't inherit and
they would have to for the above to be meaningful (the values in bar*'s
primary key have to be unique through all of the inheritance tree or
most of the references stuff simply doesn't work right).



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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: Re: [ANNOUNCE] Announce: Release of PyGreSQL version 3.0
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: What's happening with pgsql-committers?