pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: u235sentinel <u235sentinel@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Postgres Triggers issue
Date: Wed, 10 Feb 2010 21:13:46 -0700
Message-ID: <4B7383FA.2010509@gmail.com> (raw)

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();




view thread (2+ messages)  latest in thread

Message-ID: <4B7383FA.2010509@gmail.com>
Permalink:  ../4B7383FA.2010509@gmail.com/
Also on:    postgresql.org/message-id/4B7383FA.2010509@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: u235sentinel@gmail.com
  Subject: Re: Postgres Triggers issue
  In-Reply-To: <4B7383FA.2010509@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox