INNER CODE UNIT · Rust
postgresql_conf_options
lanterndata/lantern · lantern_extras/src/lib.rs:245
pub fn postgresql_conf_options() -> Vec<&'static str> {
vec![
"shared_preload_libraries='lantern_extras'",
"lantern_extras.daemon_databases='pgrx_tests'",
"lantern_extras.enable_daemon=true",
]
}
}
#[cfg(any(test, feature = "pg_test"))]
#[pg_schema]
pub mod tests {
// note: this will not get to unwrap, since the failure in the result only represents
// failures in the SPI machinery.
// Postgres aborts the transaction and returns an error message to the client when the SPI
// query fails. So, the rust interface has no Error representation for a failed query.
// As a last resort we can ensure the test panics with the expected message.