Re: deferred foreign keys

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: deferred foreign keys
Дата
Msg-id 3FF4FA25.7050802@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: deferred foreign keys  (Vivek Khera <khera@kcilink.com>)
Список pgsql-performance
> One more question: does the FK checker know to skip checking a
> constraint if the column in question did not change during an update?
>
> That is, if I have a user table that references an owner_id in an
> owners table as a foreign key, but I update fields other than owner_id
> in the user table, will it still try to verify that owner_id is a
> valid value even though it did not change?
>
> I'm using PG 7.4.

As of 7.4, yes the check is skipped.

Chris

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

Предыдущее
От: Chris Trawick
Дата:
Сообщение: Re: "fun with multipart primary keys" hobby kit
Следующее
От: "D. Dante Lorenso"
Дата:
Сообщение: Indexing a Boolean or Null column?