From e32561b477f21155d27ed7a922a35e27af13f302 Mon Sep 17 00:00:00 2001 From: akartasov Date: Wed, 31 Aug 2022 17:42:16 +0700 Subject: [PATCH] fix(engine): fix the creation of a restricted user (#418) --- engine/internal/provision/databases/postgres/postgres_mgmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/internal/provision/databases/postgres/postgres_mgmt.go b/engine/internal/provision/databases/postgres/postgres_mgmt.go index b1ae0fe8b..4e61746bf 100644 --- a/engine/internal/provision/databases/postgres/postgres_mgmt.go +++ b/engine/internal/provision/databases/postgres/postgres_mgmt.go @@ -143,7 +143,7 @@ begin for r in select datname from pg_catalog.pg_database where not datistemplate loop raise debug 'Changing owner of %', r.datname; execute format( - 'alter database %s owner to %s;', + 'alter database %s owner to "%s";', r.datname, new_owner ); -- GitLab