Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 52C41B5DBF9 for ; Fri, 27 May 2011 17:08:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 27152-01 for ; Fri, 27 May 2011 20:08:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from zebedee.cranntara.net (zebedee.cranntara.net [91.186.7.79]) by mail.postgresql.org (Postfix) with ESMTP id 109C7B5DBF7 for ; Fri, 27 May 2011 17:08:26 -0300 (ADT) Received: from [88.210.188.180] (helo=bolek.coachhouse) by zebedee.cranntara.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1QQ3Kb-0002UZ-Ay for pgsql-sql@postgresql.org; Fri, 27 May 2011 21:08:26 +0100 Received: from dick.coachhouse ([192.168.1.32] ident=tarlika) by bolek.coachhouse with esmtp (Exim 4.69) (envelope-from ) id 1QQ35L-0001OD-9Z for pgsql-sql@postgresql.org; Fri, 27 May 2011 20:52:39 +0100 Date: Fri, 27 May 2011 20:52:42 +0100 From: Tarlika Elisabeth Schmitz Cc: pgsql-sql@postgresql.org Subject: Re: Order of evaluation in triggers for checks on inherited table partitions Message-ID: <20110527205242.1a832501@dick.coachhouse> In-Reply-To: References: X-Mailer: Claws Mail 3.5.0 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.879 tagged_above=-5 required=5 tests=BAYES_00=-1.9, MISSING_HEADERS=1.021 X-Spam-Level: X-Archive-Number: 201105/172 X-Sequence-Number: 35456 On Fri, 27 May 2011 12:28:51 -0700 Kevin Crain wrote: >Is the order of evaluation for the trigger causing this error? Are you aware that triggers are executed in alphabetical order? I simply used RAISE to check the order of execution of my triggers: RAISE NOTICE '% % % %: received %', TG_TABLE_NAME, TG_NAME, TG_WHEN, TG_OP, NEW;