The _leave_state_extfn v4 API method is an optional entry point the UDF can implement to receive a notification when the UDF moves out of a query processing state.
_leave_state_extfn( a_v4_extfn_proc_context *cntxt, )
The UDF can use this notification to release memory or resources needed for the state.
Parameter | Description |
---|---|
cntxt | The procedure context object. |