[EMAIL PROTECTED] (D'Arcy J.M. Cain) writes:
> OK, so all functions can be upgraded to version 1 calling sequence, not
> just ones used for triggers.
Now you're getting there. Actually triggers *must* be upgraded to the
new calling sequence, because we don't support old-style triggers
anymore.
[EMAIL PROTECTED] (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 functio
[EMAIL PROTECTED] (D'Arcy J.M. Cain) writes:
> Yah, I was looking at chapter 22 on SPI programming. I assume that the
> same should apply there. Shall I go ahead and add it to the docs in that
> chapter as well?
Uh ... where? I see nothing related to trigger programming in chapter 22.
There's
[EMAIL PROTECTED] (D'Arcy J.M. Cain) writes:
> It gets to fmgr_oldstyle() and then dies from a jump to a null pointer.
> Can someone please tell me how to make my function a newstyle one.
Perhaps you forgot the PG_FUNCTION_INFO_V1 declaration? See
http://www.ca.postgresql.org/users-lounge/docs/7