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')
408
408
loop
409
-
execute(format('grant %s on schema %s to %I %s', rec.privilege_type, (obj->>'oid')::regnamespace, rec.grantee::regrole, case when rec.is_grantable then 'with grant option' else '' end));
409
+
execute(format('grant %s on schema %s to %s %s', rec.privilege_type, (obj->>'oid')::regnamespace, rec.grantee::regrole, case when rec.is_grantable then 'with grant option' else '' end));
410
410
end loop;
411
411
end loop;
412
412
@@ -431,7 +431,7 @@ begin
431
431
from aclexplode((obj->>'acl')::aclitem[])
432
432
where grantee::regrole in ('postgres', 'supabase_admin')
433
433
loop
434
-
execute(format('grant %s on type %s to %I %s', rec.privilege_type, (obj->>'oid')::regtype, rec.grantee::regrole, case when rec.is_grantable then 'with grant option' else '' end));
434
+
execute(format('grant %s on type %s to %s %s', rec.privilege_type, (obj->>'oid')::regtype, rec.grantee::regrole, case when rec.is_grantable then 'with grant option' else '' end));
435
435
end loop;
436
436
end loop;
437
437
@@ -465,7 +465,7 @@ begin
465
465
from aclexplode((obj->>'acl')::aclitem[])
466
466
where grantee::regrole in ('postgres', 'supabase_admin')
467
467
loop
468
-
execute(format('grant %s on %s %s(%s) to %I %s'
468
+
execute(format('grant %s on %s %s(%s) to %s %s'
469
469
, rec.privilege_type
470
470
, case
471
471
when obj->>'kind' = 'p' then 'procedure'
@@ -504,7 +504,7 @@ begin
504
504
from aclexplode((obj->>'acl')::aclitem[])
505
505
where grantee::regrole in ('postgres', 'supabase_admin')
506
506
loop
507
-
execute(format('grant %s on table %s to %I %s', rec.privilege_type, (obj->>'oid')::oid::regclass, rec.grantee::regrole, case when rec.is_grantable then 'with grant option' else '' end));
507
+
execute(format('grant %s on table %s to %s %s', rec.privilege_type, (obj->>'oid')::oid::regclass, rec.grantee::regrole, case when rec.is_grantable then 'with grant option' else '' end));
508
508
end loop;
509
509
end loop;
510
510
end
@@ -513,7 +513,7 @@ $$;
513
513
do $$
514
514
begin
515
515
if exists (select from pg_extension where extname = 'timescaledb') then
516
-
execute(format('select %I.timescaledb_post_restore()', (select pronamespace::regnamespace from pg_proc where proname = 'timescaledb_post_restore')));
516
+
execute(format('select %s.timescaledb_post_restore()', (select pronamespace::regnamespace from pg_proc where proname = 'timescaledb_post_restore')));
0 commit comments