Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 54B5B632AE5 for ; Thu, 11 Feb 2010 00:16:10 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 21123-06 for ; Thu, 11 Feb 2010 04:15:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yw0-f189.google.com (mail-yw0-f189.google.com [209.85.211.189]) by mail.postgresql.org (Postfix) with ESMTP id B23DD633F8E for ; Thu, 11 Feb 2010 00:15:59 -0400 (AST) Received: by ywh27 with SMTP id 27so736163ywh.1 for ; Wed, 10 Feb 2010 20:15:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=WV5H/s/J1CxVVnFhO9wk4f7P88YL8ZObkPmrpQZy/ng=; b=OllK8XXokE7oxuyZD/G0z7EebaB9KFK4MeQYXb6BbHDQPr9CzhyEfH0dYgiTZOhbv0 zFO4KHuf0a2vfIRA69plKZxmFhtiF8zY00NcXSvmzSZsLap3SxQL0AUf3TP6ZCJOvcVy ETTOjZNDlRok8IZ3z0P2NCY6x1QFeD3QeBaGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=FdQILz1qFqoHDAr+GidBRgOo0FGip0hnV+L2XJonKuW644koksT7nloJA74sKja3EQ zsWlprDUbCd/pdgJl4DaEkRBBAM7+paVVkQW+zWM6qoxzTjwN/qkrESM8dAcDZDzJS94 RTZM09cb4hW7ljkvN4SOwLZjdN5AdhQrbG3vc= Received: by 10.150.179.5 with SMTP id b5mr3788029ybf.248.1265861758989; Wed, 10 Feb 2010 20:15:58 -0800 (PST) Received: from ?10.20.20.223? (u235sentinel.dsl.xmission.com [166.70.240.70]) by mx.google.com with ESMTPS id 6sm758857ywc.53.2010.02.10.20.15.57 (version=SSLv3 cipher=RC4-MD5); Wed, 10 Feb 2010 20:15:58 -0800 (PST) Message-ID: <4B7383FA.2010509@gmail.com> Date: Wed, 10 Feb 2010 21:13:46 -0700 From: u235sentinel Reply-To: u235sentinel@gmail.com User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Postgres Triggers issue Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.449 tagged_above=-10 required=5 tests=AWL=0.150, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/86 X-Sequence-Number: 33689 I have a strange problem we noticed the other day with triggers. We're running 8.3.3 on Solaris 10 (intel) and have a feed that comes in regularly to populate a table we're working on. The feed works just fine inserting rows however the following trigger stops the feed until we remove the trigger. Any thoughts on what I'm doing wrong here? Thanks! --- CREATE OR REPLACE FUNCTION r.m_t() RETURNS trigger AS $BODY$ BEGIN INSERT INTO temp_m_t VALUES (NEW.*,1+1); RETURN NULL; END; $BODY$ LANGUAGE 'plpgsql'; CREATE TRIGGER tafter AFTER INSERT OR UPDATE ON r.m_a FOR EACH ROW EXECUTE PROCEDURE r.m_t();