pgrx_macros

Attribute Macro pg_guard

Source
#[pg_guard]
Expand description

Declare a function as #[pg_guard] to indicate that it is called from a Postgres extern "C" function so that Rust panic!()s (and Postgres elog(ERROR)s) will be properly handled by pgrx