pub unsafe fn pg_return_null(fcinfo: FunctionCallInfo) -> Datum
Expand description
Modifies the specified fcinfo
struct to indicate that its return value is null.
§Examples
use pgrx::pg_return_null;
use pgrx::prelude::*;
fn foo(fcinfo: pg_sys::FunctionCallInfo) -> pg_sys::Datum {
return unsafe { pg_return_null(fcinfo) };
}
§Safety
This function is unsafe as we cannot ensure the fcinfo
argument is a valid
pg_sys::FunctionCallInfo
pointer. This is your responsibility.