Re: FK triggers misused?

От: Tom Lane
Тема: Re: FK triggers misused?
Дата: ,
Msg-id: 102.1176650563@sss.pgh.pa.us
(см: обсуждение, исходный текст)
Ответ на: Re: FK triggers misused?  (Andrew - Supernews)
Список: pgsql-performance

Скрыть дерево обсуждения

FK triggers misused?  (cluster, )
 Re: FK triggers misused?  (Tom Lane, )
 Re: FK triggers misused?  (Andrew - Supernews, )
  Re: FK triggers misused?  (Tom Lane, )
 Re: FK triggers misused?  (Andrew - Supernews, )
  Re: FK triggers misused?  (cluster, )
   Re: FK triggers misused?  (Tom Lane, )
   Re: FK triggers misused?  (Tom Lane, )
    Re: FK triggers misused?  (cluster, )
 Re: FK triggers misused?  (cluster, )
  Re: FK triggers misused?  (Stephan Szabo, )

Andrew - Supernews <> writes:
> 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.

No, both sides are supposed to be tested, see lines 3350-3395 in
src/backend/commands/trigger.c.  Or do you see something broken there?
It works for me in a quick test.

            regards, tom lane


В списке pgsql-performance по дате сообщения:

От: Tom Lane
Дата:
Сообщение: Re: FK triggers misused?
От: Andrew - Supernews
Дата:
Сообщение: Re: FK triggers misused?