Function pgrx_tests::add_shutdown_hook
source · pub fn add_shutdown_hook<F>(func: F)
Expand description
Register a shutdown hook to be called when the process exits.
Note that shutdown hooks are only run on the client, so must be added from
your setup
function, not the #[pg_test]
itself.