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 ?