You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where grantee::regrole in ('postgres', 'supabase_admin')
430
430
loop
431
-
execute(format('revoke %s on function %s(%s) from %I', rec.privilege_type, (obj->>'oid')::regproc, pg_get_function_identity_arguments((obj->>'oid')::regproc), case when rec.grantee = 'postgres'::regrole then 'supabase_admin' else 'postgres' end));
, case when rec.grantee = 'postgres'::regrole then 'supabase_admin' else 'postgres' end
440
+
));
432
441
end loop;
433
442
end loop;
434
443
foreach obj in array functions
@@ -438,7 +447,17 @@ begin
438
447
from aclexplode((obj->>'acl')::aclitem[])
439
448
where grantee::regrole in ('postgres', 'supabase_admin')
440
449
loop
441
-
execute(format('grant %s on function %s(%s) to %I %s', rec.privilege_type, (obj->>'oid')::regproc, pg_get_function_identity_arguments((obj->>'oid')::regproc), rec.grantee::regrole, case when rec.is_grantable then 'with grant option' else '' end));
0 commit comments