Re: Foreign Key written as a trigger

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Foreign Key written as a trigger
Дата
Msg-id 8197.1121091438@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Foreign Key written as a trigger  ("George Woodring" <george.woodring@iglass.net>)
Список pgsql-general
"George Woodring" <george.woodring@iglass.net> writes:
> I have a database that has been upgrade numerous times (Started about
> 7.1 and is not 7.4.8).  The table has 2 foreign keys on it, but when I
> look at the table I see that the FK applied before 7.4.X is written as a
> trigger.  Everything seems to work, I was just wondering if there are
> any performance reasons to change the trigger to a FK.

I don't think it would have any performance impact, but it'd definitely
be more future-proof to hide the triggers.  See contrib/adddepend for
a possibly helpful tool.

            regards, tom lane

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

Предыдущее
От: "George Woodring"
Дата:
Сообщение: Foreign Key written as a trigger
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Transaction isolation levels