Re: [HACKERS] FOREIGN KEY revisited

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] FOREIGN KEY revisited
Дата
Msg-id 35E65CEB.EDB995F4@krs.ru
обсуждение исходный текст
Ответ на FOREIGN KEY revisited  ("Matthew N. Dodd" <winter@jurai.net>)
Список pgsql-hackers
Thomas G. Lockhart wrote:
>
> Back to your question: Postgres probably does not remove trigger
> functions if a table is destroyed, but that isn't a problem if the
> trigger function is generic code which will be reused anyway.

Both functions in spi/refint.c are generic ones. They should be
part of core system, not of contrib, to be used for FOREIGN KEY
in CREATE TABLE...
No problems with using them.

>
> Vadim has been thinking about how to do foreign keys, but I can't
> remember if it was via triggers or some other means.
                     ^^^^^^^^^^^^
No. Via indices.

Vadim

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

Предыдущее
От: "Matthew N. Dodd"
Дата:
Сообщение: Re: [HACKERS] FOREIGN KEY revisited
Следующее
От: Tom Ivar Helbekkmo
Дата:
Сообщение: Re: [HACKERS] vacuum problem