----- Original Message -----
Sent: Wednesday, May 08, 2002 4:11 PM
Subject: C trigger
In trigger function written in C, expression:
SPI_getvalue(tupleNEW, tupdesc, n) crushes the server !!!
trigdata = (TriggerData *) fcinfo->context
tupleNEW = trigdata->tg_newtuple
Values of tupleNEW, tupdesc, and n are OK because same trigger works
AFTER UPDATE and AFTER DELETE, but not AFTER INSERT
Someone know why ?
Sorry !
I accessed trigdata->tg_newtuple which has no meaning in insert trigger !!!