Re: Postgres Triggers issue - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Postgres Triggers issue
Date
Msg-id D960CB61B694CF459DCFB4B0128514C203938171@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Postgres Triggers issue  (u235sentinel <u235sentinel@gmail.com>)
Responses Re: Postgres Triggers issue  (Adrian Klaver <adrian.klaver@gmail.com>)
List pgsql-general
u235sentinel wrote:
> 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();

What do you mean "stops the feed"?

Can you describe the behaviour in database terms?
What exactly happens, and how does it differ from what you expect?
Are there error messages? If yes, could you quote them?

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: migrating data from 8.4 to 8.3
Next
From: db.subscriptions@shepherdhill.biz
Date:
Subject: PostgreSQL Installation