Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Umsif-00053p-7Z for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Jun 2013 21:36:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Umsie-00027d-Oe for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Jun 2013 21:36:40 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Umsid-00027X-Hn for pgsql-bugs@postgresql.org; Wed, 12 Jun 2013 21:36:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Umsib-0006P0-FH for pgsql-bugs@postgresql.org; Wed, 12 Jun 2013 21:36:38 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r5CLaZ4m001107; Wed, 12 Jun 2013 17:36:35 -0400 (EDT) From: Tom Lane To: greg@antrez.pl cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8227: referential integrity problem In-reply-to: References: Comments: In-reply-to greg@antrez.pl message dated "Wed, 12 Jun 2013 20:08:53 -0000" Date: Wed, 12 Jun 2013 17:36:34 -0400 Message-ID: <1106.1371072994@sss.pgh.pa.us> X-Pg-Spam-Score: 0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org greg@antrez.pl writes: > Is it ok that we loose referential integrity by locking DELETE on table > test_item ? Yes. If you put a trigger on a table involved in an FK constraint, it's your responsibility that the trigger doesn't break FK update operations. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs