Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A020C633651 for ; Sat, 27 Feb 2010 16:58:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 24957-05 for ; Sat, 27 Feb 2010 20:58:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 890CA632B8E for ; Sat, 27 Feb 2010 16:58:28 -0400 (AST) 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 o1RKwKal000616; Sat, 27 Feb 2010 15:58:20 -0500 (EST) To: Michael Gould cc: Scott Marlowe , pgsql-sql@postgresql.org Subject: Re: Issue with insert In-reply-to: <68f695e891db6c12e538e1a31a19a797@intermodalsoftwaresolutions.net> References: <68f695e891db6c12e538e1a31a19a797@intermodalsoftwaresolutions.net> Comments: In-reply-to Michael Gould message dated "Sat, 27 Feb 2010 14:25:54 -0600" Date: Sat, 27 Feb 2010 15:58:20 -0500 Message-ID: <614.1267304300@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.11 tagged_above=-10 required=5 tests=BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 201002/107 X-Sequence-Number: 33706 Michael Gould writes: > Here is the table DDL, Can't really test this since you didn't supply the source code for those triggers: > CREATE TRIGGER "insertcitystateinfo" BEFORE INSERT OR UPDATE > ON "iss"."citystateinfo" FOR EACH ROW > EXECUTE PROCEDURE "iss"."insertcitystateinfofunc"(); > CREATE TRIGGER "update_timestamp_citystateinfo" BEFORE UPDATE > ON "iss"."citystateinfo" FOR EACH ROW > EXECUTE PROCEDURE "iss"."timestampfunc"(); Personally I'm suspicious that the BEFORE INSERT trigger is changing the data. regards, tom lane