create extension pg_wait_sampling in compute_ctl

This commit is contained in:
Arseny Sher
2023-11-16 20:54:02 +00:00
committed by Arthur Petukhovsky
parent 16e9eb2832
commit e6eb548491
+6
View File
@@ -670,6 +670,12 @@ pub fn handle_extensions(spec: &ComputeSpec, client: &mut Client) -> Result<()>
info!("creating system extensions with query: {}", query);
client.simple_query(query)?;
}
if libs.contains("pg_wait_sampling") {
// Create extension only if this compute really needs it
let query = "CREATE EXTENSION IF NOT EXISTS pg_wait_sampling";
info!("creating system extensions with query: {}", query);
client.simple_query(query)?;
}
}
Ok(())