Set neon_superuser privilege under lakebase mode (#12775)

## Problem

## Summary of changes
This commit is contained in:
HaoyuHuang
2025-07-29 14:30:34 -07:00
committed by GitHub
parent 07c3cfd2a0
commit ca88521653
2 changed files with 7 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ DO $$
BEGIN
IF NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname = '{privileged_role_name}')
THEN
CREATE ROLE {privileged_role_name} CREATEDB CREATEROLE NOLOGIN REPLICATION BYPASSRLS IN ROLE pg_read_all_data, pg_write_all_data;
CREATE ROLE {privileged_role_name} {privileges} IN ROLE pg_read_all_data, pg_write_all_data;
END IF;
END
$$;