From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Jim Finnerty <jfinnert@amazon.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: IMMEDIATE constraint enforcement does not comply with the SQL standard
Date: Tue, 09 Oct 2018 06:54:18 +0100
Message-ID: <87zhvn8ysq.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <1539036309291-0.post@n3.nabble.com>
References: <DD7C08FE-B246-464D-B8E8-CA07F5835509@amazon.com>
<24593.1539035385@sss.pgh.pa.us>
<1539036309291-0.post@n3.nabble.com>
>>>>> "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_c...
(I just added your issue to that entry, which was already there to
discuss the referential actions vs BEFORE trigger timing.)
--
Andrew (irc:RhodiumToad)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andrew@tao11.riddles.org.uk, jfinnert@amazon.com
Subject: Re: IMMEDIATE constraint enforcement does not comply with the SQL standard
In-Reply-To: <87zhvn8ysq.fsf@news-spur.riddles.org.uk>
References: <DD7C08FE-B246-464D-B8E8-CA07F5835509@amazon.com> <24593.1539035385@sss.pgh.pa.us> <1539036309291-0.post@n3.nabble.com> <87zhvn8ysq.fsf@news-spur.riddles.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox