C trigger - Mailing list pgsql-general

From Darko Prenosil
Subject C trigger
Date
Msg-id 00ba01c1f69a$446c4fb0$f600000a@darko
Whole thread Raw
List pgsql-general
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 ?
 
 

pgsql-general by date:

Previous
From: "Tille, Andreas"
Date:
Subject: Re: Allow user to create tables
Next
From: Tom Lane
Date:
Subject: Re: Allow user to create tables