#[pg_guard]
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 pgx
extern "C"
panic!()
elog(ERROR)
pgx