Grant BypassRLS to new neon_superuser roles (#4935)

This commit is contained in:
Sasha Krassovsky
2023-08-11 04:04:45 +09:00
committed by GitHub
parent 25c66dc635
commit 3a71cf38c1

View File

@@ -270,7 +270,7 @@ pub fn handle_roles(spec: &ComputeSpec, client: &mut Client) -> Result<()> {
}
RoleAction::Create => {
let mut query: String = format!(
"CREATE ROLE {} CREATEROLE CREATEDB IN ROLE neon_superuser",
"CREATE ROLE {} CREATEROLE CREATEDB BYPASSRLS IN ROLE neon_superuser",
name.pg_quote()
);
info!("role create query: '{}'", &query);