Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 88108B5DC2D for ; Wed, 28 Sep 2011 11:44:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 46441-10 for ; Wed, 28 Sep 2011 14:44:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 29B4EB5DC35 for ; Wed, 28 Sep 2011 11:44:19 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 28 Sep 2011 09:43:41 -0500 Message-Id: <4E82EC4A020000250004183A@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 28 Sep 2011 09:43:38 -0500 From: "Kevin Grittner" To: , Cc: "pgsql-admin@postgresql.org" Subject: Re: constraint triggers References: <4E83190B.3070604@nasa.gov> <1317219989.24926.10.camel@gilbertoc.mtcorp.etecsa.cu> In-Reply-To: <1317219989.24926.10.camel@gilbertoc.mtcorp.etecsa.cu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/208 X-Sequence-Number: 38445 Gilberto Castillo Martínez wrote: >> CREATE OR REPLACE FUNCTION increment_dataset_granule_count() >> RETURN NULL; > Replace RETURN NULL for RETURN NEW That won't matter for an AFTER trigger: http://www.postgresql.org/docs/9.0/interactive/trigger-definition.html says: | The return value is ignored for row-level triggers fired after an | operation, and so they can return NULL. -Kevin