GRANT CREATE ON SCHEMA public TO web_access

This commit is contained in:
Anastasia Lubennikova
2022-10-17 19:21:36 +03:00
parent c4ee62d427
commit 0ec5ddea0b

View File

@@ -380,6 +380,10 @@ pub fn handle_grants(node: &ComputeNode, client: &mut Client) -> Result<()> {
info!("grant query {}", &query);
client.execute(query.as_str(), &[])?;
// Explicitly grant CREATE ON SCHEMA PUBLIC to the web_access user.
// This is needed since postgres 15, where this privilege is removed by default.
client.execute("GRANT CREATE ON SCHEMA public TO web_access", &[])?;
}
// Do some per-database access adjustments. We'd better do this at db creation time,