pub fn register_panic_handler() {
    use std::panic;
    use crate::pg_error;

    // set (and replace the existing) panic handler, this will tell Postgres that the call failed
    //   a level of Fatal will force the DB connection to be killed.
    panic::set_hook(Box::new(|info| {
        let level = pg_error::Level::Fatal;

        pg_error::log(level, file!(), line!(), module_path!(), format!("panic in Rust extension: {}", info));
    }));
}
/// This will replace the current panic_handler
This will replace the current panic_handler
This will replace the current panic_handler
pub fn register_panic_handler() {
    use std::panic;
    use crate::pg_error;
    // set (and replace the existing) panic handler, this will tell Postgres that the call failed
    //   a level of Fatal will force the DB connection to be killed.
    panic::set_hook(Box::new(|info| {
        let level = pg_error::Level::Fatal;
        pg_error::log(level, file!(), line!(), module_path!(), format!("panic in Rust extension: {}", info));
    }));
}
pub fn register_panic_handler ( ) { use std :: panic ; use crate :: pg_error ; // set (and replace the existing) panic handler, this will tell Postgres that the call failed //   a level of Fatal will force the DB connection to be killed. panic :: set_hook ( Box :: new ( | info | { let level = pg_error :: Level :: Fatal ; pg_error :: log ( level , file ! ( ) , line ! ( ) , module_path ! ( ) , format ! ( " " info ) ) ; } ) ) ; }
This will replace the current panic_handler
This will replace the current panic_handler