External Function (a_v4_extfn_proc)

The server uses the a_v4_extfn_proc structure to call into the various entry points in the UDF. The server passes an instance of a_v4_extfn_proc_context to each of the functions.

Method Summary

Method Description
_start_extfn Allocates a structure and stores its address in the _user_data field in the a_v4_extfn_proc_context.
_finish_extfn Deallocates a structure whose address was stored in the user_data field in the a_v4_extfn_proc_context.
_evaluate_extfn Required function pointer to be called for each invocation of the function on a new set of argument values.
_describe_extfn See Describe API.
_enter_state_extfn The UDF can use this function to allocate structures.
_leave_state_extfn The UDF can use this function to release memory or resources needed for the state.