Re: FK triggers misused?

Поиск
Список
Период
Сортировка
От Andrew - Supernews
Тема Re: FK triggers misused?
Дата
Msg-id slrnf23eqp.10cj.andrew+nonews@atlantis.supernews.net
обсуждение исходный текст
Ответ на FK triggers misused?  (cluster <skrald@amossen.dk>)
Ответы Re: FK triggers misused?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
On 2007-04-15, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> cluster <skrald@amossen.dk> writes:
>> It seems that the FK triggers for the table are evaluated even though
>> none of the FK columns are altered.
>
> Hm, they're not supposed to be, at least not in reasonably modern
> PG releases (and one that breaks out trigger runtime in EXPLAIN ANALYZE
> should be modern enough IIRC).  Exactly which PG release are you
> running?  Can you provide a self-contained test case?

Looking at current CVS code the RI check seems to be skipped on update of
the _referred to_ table if the old and new values match, but not on update
of the _referring_ table.

--
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: FK triggers misused?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: FK triggers misused?