Function pg_func_extra

Source
pub unsafe fn pg_func_extra<ReturnType, DefaultValue: FnOnce() -> ReturnType>(
    fcinfo: FunctionCallInfo,
    default: DefaultValue,
) -> PgBox<ReturnType>
Expand description

Retrieve the .flinfo.fn_extra pointer (as a PgBox’d type) from pg_sys::FunctionCallInfo.

This function is unsafe as we cannot guarantee the provided pg_sys::FunctionCallInfo pointer is valid