| От | Tom Lane |
|---|---|
| Тема | Re: deferrable foreign keys |
| Дата | |
| Msg-id | 13460.1259768532@sss.pgh.pa.us обсуждение |
| Ответ на | deferrable foreign keys (Morus Walter <morus.walter.ml@googlemail.com>) |
| Ответы |
Re: deferrable foreign keys
|
| Список | pgsql-general |
Morus Walter <morus.walter.ml@googlemail.com> writes:
> are there downsides of making foreign keys deferrable (but initially
> immediate) for updates, when the transaction does not set the
> constraint behaviour to deferred?
> I'd expect that to have the same behaviour as non deferrable foreign
> keys.
> What I don't understand is, why is non deferrable the default, then.
Because the SQL standard says so. I don't believe there is any actual
penalty for deferrable within the PG implementation, but perhaps there
is in other systems' implementations.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера