[][src]Module pgx::fcinfo

Helper macros and functions for creating Postgres UDFs.

Other than the exported macros, typically these functions are not necessary to call directly as they're used behind the scenes by the code generated by the #[pg_extern] macro.

Functions

direct_function_call

As #[pg_extern] functions are wrapped with a different signature, this allows you to directly call them.

direct_function_call_as_datum

Same as direct_function_call but instead returns the direct Option<pg_sys::Datum> instead of converting it to a value

get_getarg_type
pg_arg_is_null
pg_func_extra
pg_getarg
pg_getarg_cstr

this is intended for Postgres functions that take an actual cstring argument, not for getting a varlena argument type as a CStr.

pg_getarg_datum
pg_getarg_datum_raw
pg_getarg_pointer
pg_return_null
pg_return_void
srf_first_call_init
srf_is_first_call
srf_per_call_setup
srf_return_done
srf_return_next