Expand description
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.
Structs
The equivalent of a PostgreSQL
NULL
.Functions
This mimics the functionality of Postgres’
DirectFunctionCall
macros, allowing you to call
internal Postgres functions using its “V1” calling convention. Unlike the Postgres’ C macros,
the function is allowed to return a NULL datum.Same as direct_function_call but instead returns the direct
Option<pg_sys::Datum>
instead
of converting it to a valueAkin to direct_function_call, but specifically for calling those functions declared with the
#[pg_extern]
attribute.Same as direct_pg_extern_function_call but instead returns the direct
Option<pg_sys::Datum>
instead
of converting it to a valueRetrieve the
.flinfo.fn_extra
pointer (as a PgBox’d type) from pg_sys::FunctionCallInfo
.this is intended for Postgres functions that take an actual
cstring
argument, not for getting
a varlena argument type as a CStr.Safety