Re: RI checks during UPDATEs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: RI checks during UPDATEs
Дата
Msg-id 9174.1170188674@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RI checks during UPDATEs  ("Simon Riggs" <simon@2ndquadrant.com>)
Ответы Re: RI checks during UPDATEs  ("Simon Riggs" <simon@2ndquadrant.com>)
Список pgsql-hackers
"Simon Riggs" <simon@2ndquadrant.com> writes:
> Any objections to implementing this?

Only that it was done a long time ago --- see
RI_FKey_keyequal_upd_pk/fk.

> It would be even better if there was some way of not executing the
> trigger at all if we knew that the UPDATE statement doesn't SET the FK
> columns.

People keep suggesting that, and the counterexample is always that you
can't know what a BEFORE trigger might do to the row.
        regards, tom lane


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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: [pgsql-patches] pg_dump pretty_print
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: [DOCS] "May", "can", "might"