Skip to content

Commit 27f47ca

Browse files
committed
test: regress default privileges
1 parent 6ae63d3 commit 27f47ca

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

nix/tests/expected/default_privs.out

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- this tests the outcome of doing ALTER DEFAULT PRIVILEGES..
2+
select defaclrole::regrole, defaclnamespace::regnamespace, defaclobjtype from pg_default_acl where defaclnamespace = 'public'::regnamespace::oid order by defaclrole::regrole, defaclobjtype;
3+
defaclrole | defaclnamespace | defaclobjtype
4+
----------------+-----------------+---------------
5+
supabase_admin | public | S
6+
supabase_admin | public | f
7+
supabase_admin | public | r
8+
postgres | public | S
9+
postgres | public | f
10+
postgres | public | r
11+
(6 rows)
12+

nix/tests/sql/default_privs.sql

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- this tests the outcome of doing ALTER DEFAULT PRIVILEGES..
2+
select defaclrole::regrole, defaclnamespace::regnamespace, defaclobjtype from pg_default_acl where defaclnamespace = 'public'::regnamespace::oid order by defaclrole::regrole, defaclobjtype;

0 commit comments

Comments
 (0)