Thus spake Tom Lane
> darcy@druid.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
I'm so confused. :-)
OK, so all functions can be upgraded to version 1 calling sequence, not
just ones used for triggers. I think I have it but the docs could still
use some work. If someone wants to check out the latest version of my
chkpass function in contrib and let me know if I seem to have the right
idea now then I will go ahead and try to improve the docs.
--
D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.