Postgres Triggers issue

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


--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
u235sentinel [ Do, 11 Februar 2010 05:13 ] [ ID #2031990 ]

Re: Postgres Triggers issue

u235sentinel <u235sentinel [at] gmail.com> writes:
> 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?

This really isn't enough information for anybody to help you. The
rest of us don't know what you mean by a "feed", let alone how a trigger
might stop it. Tell us what's happening at the level of SQL commands.

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Tom Lane [ Do, 11 Februar 2010 06:51 ] [ ID #2031991 ]
Datenbanken » gmane.comp.db.postgresql.admin » Postgres Triggers issue

Vorheriges Thema: Best Replication Tool
Nächstes Thema: pg_migrator from 32bit to 64bit arch -- does it work? caveats?