Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A4D2BB5F586 for ; Tue, 7 Jun 2011 12:34:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 79832-04 for ; Tue, 7 Jun 2011 15:34:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E310FB5F56B for ; Tue, 7 Jun 2011 12:34:16 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p57FXTpL014093; Tue, 7 Jun 2011 11:33:29 -0400 (EDT) To: Anton Dedov cc: pgsql-bugs@postgresql.org Subject: Re: ON DELETE CASCADE with multiple paths in PostgreSQL 9.x In-reply-to: <4DEDEFB4.8090803@parallels.com> References: <4DEDEFB4.8090803@parallels.com> Comments: In-reply-to Anton Dedov message dated "Tue, 07 Jun 2011 13:30:28 +0400" Date: Tue, 07 Jun 2011 11:33:29 -0400 Message-ID: <14092.1307460809@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/66 X-Sequence-Number: 30445 Anton Dedov writes: > We are using patched version of PostgreSQL 8.1 in order to work-around > bug described in > http://archives.postgresql.org/pgsql-bugs/2007-05/msg00130.php. Now, we > are going to upgrade to 9.0 and it also would be great to get rid of > patch as it makes keeping database engine current too expensive task. > I've checked 9.0 and it seems that undesirable behavior is still there. > Is there any plans to fix it in future releases? It wasn't a bug then, and it isn't a bug now. There is no guarantee of the order in which FK constraints will be checked. regards, tom lane