darcy(at)druid(dot)net (D'Arcy J.M. Cain) writes:
>> There's an example of an old-style function at
>> http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/spi-examples.html
>> but it's not a trigger.
> Ah. So PG_FUNCTION_INFO_V1() is strictly for triggers then.
No, it's for new-style functions. See
http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/xfunc-c.html
regards, tom lane