Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ubz1c-00047y-FS for pgsql-bugs@arkaria.postgresql.org; Mon, 13 May 2013 20:07:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ubz1b-0005V2-N1 for pgsql-bugs@arkaria.postgresql.org; Mon, 13 May 2013 20:07:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ubz1a-0005Uw-RK for pgsql-bugs@postgresql.org; Mon, 13 May 2013 20:07:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ubz1Y-0005y9-Aj for pgsql-bugs@postgresql.org; Mon, 13 May 2013 20:07:10 +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 r4DK6dXK011315; Mon, 13 May 2013 16:06:40 -0400 (EDT) From: Tom Lane To: hcurti@exa.unicen.edu.ar cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8152: strange behavior regarding after triggers and inheritance In-reply-to: References: Comments: In-reply-to hcurti@exa.unicen.edu.ar message dated "Sun, 12 May 2013 01:02:27 -0000" Date: Mon, 13 May 2013 16:06:39 -0400 Message-ID: <11314.1368475599@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 hcurti@exa.unicen.edu.ar writes: > PostgreSQL version: 8.4.17 > After statments triggers on child tables are sometimes executed and > sometimes are not. As I far as I could see, when the after trigger is > defined in only one of the tables it may not get executed, wether when it is > defined in every inherited table it does, but > which one is undetermined. This test case appears to work the way you're expecting in 9.0 and later. I didn't immediately find a mention of such a change in the commit logs; perhaps it got fixed as a side-effect of the changes that moved trigger processing into ModifyTable plan nodes. Anyway, I doubt we'd consider changing trigger behavior in 8.4.x at this late date. You should update to a newer release series if this is a problem for you. 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