2 SPI_register_trigger_data
4 SPI_register_trigger_data — make ephemeral trigger data available in
9 int SPI_register_trigger_data(TriggerData *tdata)
13 SPI_register_trigger_data makes any ephemeral relations captured by a
14 trigger available to queries planned and executed through the current
15 SPI connection. Currently, this means the transition tables captured by
16 an AFTER trigger defined with a REFERENCING OLD/NEW TABLE AS ...
17 clause. This function should be called by a PL trigger handler function
23 the TriggerData object passed to a trigger handler function as
28 If the execution of the command was successful then the following
29 (nonnegative) value will be returned:
32 if the captured trigger data (if any) has been successfully
35 On error, one of the following negative values is returned:
41 if called from an unconnected C function
43 SPI_ERROR_REL_DUPLICATE
44 if the name of any trigger data transient relation is already
45 registered for this connection