Re: New/old style trigger API
От | darcy@druid.net (D'Arcy J.M. Cain) |
---|---|
Тема | Re: New/old style trigger API |
Дата | |
Msg-id | 20010528154800.B8F821A97@druid.net обсуждение исходный текст |
Ответ на | Re: New/old style trigger API (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: New/old style trigger API
|
Список | pgsql-hackers |
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.
В списке pgsql-hackers по дате отправления: