mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-09 06:22:57 +00:00
GRANT CREATE ON SCHEMA public TO web_access
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user