Re: Foreign Key Deferrable Misunderstanding or Bug? - Mailing list pgsql-general

From Tom Lane
Subject Re: Foreign Key Deferrable Misunderstanding or Bug?
Date
Msg-id 5976.1249595220@sss.pgh.pa.us
Whole thread Raw
In response to Foreign Key Deferrable Misunderstanding or Bug?  (Paul Rogers <progers@sparkbase.com>)
List pgsql-general
Paul Rogers <progers@sparkbase.com> writes:
> Why does the attached script fail with a foreign key constraint violation?

The ON DELETE RESTRICT is why.  Per the fine manual:

    [RESTRICT] is the same as NO ACTION except that the check is not
    deferrable.

It's a bit odd, but that's the best interpretation we can make of the
spec's wording about how this should work.

            regards, tom lane

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Empty Updates, ON UPDATE triggers and Rules
Next
From: Stephan Szabo
Date:
Subject: Re: Foreign Key Deferrable Misunderstanding or Bug?