Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 8447C1B505F0 for ; Wed, 14 Mar 2012 13:21:16 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S7qwq-0003dB-8y for pgsql-bugs@postgresql.org; Wed, 14 Mar 2012 16:21:12 +0000 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 q2EGKwwQ001845; Wed, 14 Mar 2012 12:20:58 -0400 (EDT) To: claudiomsi@hotmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6531: integrity constraint failure In-reply-to: References: Comments: In-reply-to claudiomsi@hotmail.com message dated "Wed, 14 Mar 2012 16:07:00 -0000" Date: Wed, 14 Mar 2012 12:20:58 -0400 Message-ID: <1844.1331742058@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/108 X-Sequence-Number: 32669 claudiomsi@hotmail.com writes: > It would be a BUG. No, this is not a bug. If you create a trigger that disables deletions on the referencing table, you should not be surprised that foreign-key-related deletions don't happen. Triggers do fire on FK actions; it would be substantially less useful if they didn't. regards, tom lane