Insertion Deferrable - Mailing list pgsql-bugs

From 杨邕
Subject Insertion Deferrable
Date
Msg-id 752022ef04102900262d656006@mail.gmail.com
Whole thread Raw
Responses Re: Insertion Deferrable
List pgsql-bugs
You told me restricted foreign key cannot deferable in PostgreSQL 8.0.0 Beta 4.

2004-10-21 22:33  tgl

    * doc/src/sgml/ddl.sgml, doc/src/sgml/ref/create_table.sgml,
      src/backend/commands/tablecmds.c, src/backend/commands/trigger.c:
      Disallow referential integrity actions from being deferred; only
      the NO ACTION check is deferrable.  This seems to be a closer
      approximation to what the SQL spec says than what we were doing
      before, and it prevents some anomalous behaviors that are
      possible now that triggers can fire during the execution of PL
      functions.  Stephan Szabo.

Take this test...
Restricted foreign key allows insertion deferrable,
And rejects deletion deferrable.

Why it is not symmetrical ?

Attachment

pgsql-bugs by date:

Previous
From: Igor Azarny
Date:
Subject: 8 beta 4 installation failed
Next
From: "Andrea D."
Date:
Subject: Not a real bug, but an error