Joe Conway <mail@joeconway.com> writes:
> Rich Cullingford wrote:
>> This question seems to have been asked a number of times on this list,
>> recently (including by me) without being answered: how to pass the row
>> data stored in the NEW variable from a trigger function into a
>> sub-function.
> I looked a bit at making this work in PL/pgSQL at some point -- IIRC the
> issues to be solved were non-trivial.
I think that this might be less non-trivial given the recent changes in
the composite-type-datum support. I haven't got round to looking at
plpgsql in particular, though.
regards, tom lane