We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e8c00 commit 614d2d7Copy full SHA for 614d2d7
ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
@@ -504,7 +504,17 @@ begin
504
else rec.grantee::regrole
505
end
506
));
507
+ end if;
508
+ end loop;
509
510
511
+ foreach obj in array default_acls
512
+ loop
513
+ for rec in
514
+ select grantor, grantee, privilege_type, is_grantable
515
+ from aclexplode((obj->>'acl')::aclitem[])
516
517
+ if obj->>'role' in ('postgres', 'supabase_admin') or rec.grantee::regrole in ('postgres', 'supabase_admin') then
518
execute(format('alter default privileges for role %I %s grant %s on %s to %I %s'
519
, obj->>'role'
520
, case when obj->>'schema' is null then ''
0 commit comments