If PgMemoryContexts::leak_and_drop_on_delete() leaks a type that is impl Drop, and that implementation happens to panic, then Postgres will segfault because the callback function was not properly guarded.
As a drive-by, slightly cleanup error reporting in the test framework.
If
PgMemoryContexts::leak_and_drop_on_delete()
leaks a type that isimpl Drop
, and that implementation happens to panic, then Postgres will segfault because the callback function was not properly guarded.As a drive-by, slightly cleanup error reporting in the test framework.