Skip to content

Commit b5110ba

Browse files
committed
fix(pg_upgrade): add quotes around role options
1 parent d42ab56 commit b5110ba

File tree

1 file changed

+1
-1
lines changed
  • ansible/files/admin_api_scripts/pg_upgrade_scripts

1 file changed

+1
-1
lines changed

ansible/files/admin_api_scripts/pg_upgrade_scripts/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ begin
254254
select split_part(value, '=', 1) as key, substr(value, strpos(value, '=') + 1) as value
255255
from jsonb_array_elements_text(obj->'configs')
256256
loop
257-
execute(format('alter role %I %s set %I to %s',
257+
execute(format('alter role %I %s set %I to "%s"',
258258
obj->>'role',
259259
case when obj->>'database' is null then '' else format('in database %I', obj->>'database') end,
260260
rec.key,

0 commit comments

Comments
 (0)