File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ansible/files/admin_api_scripts/pg_upgrade_scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ begin
341
341
else obj->>'role'
342
342
end
343
343
, case when obj->>'schema' is null then ''
344
- else format('in schema %s ', ( obj->>'schema')::regnamespace )
344
+ else format('in schema %I ', obj->>'schema')
345
345
end
346
346
, rec.privilege_type
347
347
, case when obj->>'objtype' = 'r' then 'tables'
@@ -369,7 +369,7 @@ begin
369
369
execute(format('alter default privileges for role %I %s grant %s on %s to %s %s'
370
370
, obj->>'role'
371
371
, case when obj->>'schema' is null then ''
372
- else format('in schema %s ', ( obj->>'schema')::regnamespace )
372
+ else format('in schema %I ', obj->>'schema')
373
373
end
374
374
, rec.privilege_type
375
375
, case when obj->>'objtype' = 'r' then 'tables'
You can’t perform that action at this time.
0 commit comments