Re: IMMEDIATE constraint enforcement does not comply with the SQL standard

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: IMMEDIATE constraint enforcement does not comply with the SQL standard
Дата
Msg-id 87zhvn8ysq.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: IMMEDIATE constraint enforcement does not comply with the SQLstandard  (Jim Finnerty <jfinnert@amazon.com>)
Ответы Re: IMMEDIATE constraint enforcement does not comply with the SQLstandard  (Jim Finnerty <jfinnert@amazon.com>)
Список pgsql-bugs
>>>>> "Jim" == Jim Finnerty <jfinnert@amazon.com> writes:

 Jim> The consequences of non-compliance is much more insidious than it
 Jim> at first appears. At stake here is whether PostgreSQL supports
 Jim> non-deferrable constraints at all. The purpose of having
 Jim> non-deferrable IMMEDIATE constraints in the standard is to make
 Jim> query optimizations possible.

Unfortunately the possibility of query optimizations for FKs is already
defeated by the issue of referential actions, where we also violate the
spec.

https://wiki.postgresql.org/wiki/PostgreSQL_vs_SQL_Standard#Trigger_firing_relative_to_referential_constraint_actions

(I just added your issue to that entry, which was already there to
discuss the referential actions vs BEFORE trigger timing.)

-- 
Andrew (irc:RhodiumToad)



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

Предыдущее
От: Jim Finnerty
Дата:
Сообщение: Re: IMMEDIATE constraint enforcement does not comply with the SQLstandard
Следующее
От: Jim Finnerty
Дата:
Сообщение: Re: IMMEDIATE constraint enforcement does not comply with the SQLstandard