Fw: C trigger - Mailing list pgsql-general

From Darko Prenosil
Subject Fw: C trigger
Date
Msg-id 02bc01c1f6a0$40cc0fc0$f600000a@darko
Whole thread Raw
List pgsql-general
 
----- 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 !!!
 
 
 

pgsql-general by date:

Previous
From: Jean-Luc Lachance
Date:
Subject: Re: Can this be done in one query?
Next
From: Doug McNaught
Date:
Subject: Re: Performance issues with compaq server