Re: New/old style trigger API - Mailing list pgsql-hackers

From darcy@druid.net (D'Arcy J.M. Cain)
Subject Re: New/old style trigger API
Date
Msg-id 20010528154800.B8F821A97@druid.net
Whole thread Raw
In response to Re: New/old style trigger API  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: New/old style trigger API  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: User functions and AIX
Next
From: Oleg Bartunov
Date:
Subject: R-Tree implementation using GiST (compatible with multi-key GiST)