From 12e1cc4fe0dd9b982d95c316618ea2a0df15e4e8 Mon Sep 17 00:00:00 2001 From: Roman Dyakov Date: Fri, 1 Sep 2023 12:43:10 +0300 Subject: [PATCH] Alter role superuser for local --- start_local.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start_local.sql b/start_local.sql index e8155ca..6aeefda 100644 --- a/start_local.sql +++ b/start_local.sql @@ -1,2 +1,3 @@ -CREATE ROLE postgres WITH PASSWORD 'postgres' LOGIN SUPERUSER; +CREATE ROLE postgres WITH PASSWORD 'postgres' LOGIN; +ALTER ROLE postgres SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN REPLICATION BYPASSRLS; CREATE DATABASE postgres WITH OWNER postgres;