From: | darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain) |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: New/old style trigger API |
Date: | 2001-05-28 15:48:00 |
Message-ID: | 20010528154800.B8F821A97@druid.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thus spake Tom Lane
> 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
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(at){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.
From | Date | Subject | |
---|---|---|---|
Next Message | D'Arcy J.M. Cain | 2001-05-28 15:56:17 | User functions and AIX |
Previous Message | Larry Rosenman | 2001-05-28 15:12:00 | doc markup bug.... |