Re: PL/pgSQL return value in after triggers - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PL/pgSQL return value in after triggers
Date
Msg-id 21059.1298913645@sss.pgh.pa.us
Whole thread Raw
In response to PL/pgSQL return value in after triggers  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> PL/pgSQL trigger functions currently require a value to be returned,
> even though that value is not used for anything in case of a trigger
> fired AFTER.  I was wondering if we could relax that.

I got bit by that just a couple days ago --- I supposed that a trigger
that wasn't returning anything useful shouldn't need an explicit
RETURN.  So +1 for doing something about it.  However, unless it's a
very small and simple patch, I concur with Robert that it might be
a bit late to consider this for 9.1.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: PL/pgSQL return value in after triggers
Next
From: Robert Haas
Date:
Subject: Re: Snapshot synchronization, again...