@@ -18,8 +18,10 @@ SET ROLE pg_write_all_data;
1818CREATE TABLE regress_pgrwd_table();
1919SET ROLE regress_mdb_superuser_user1;
2020CREATE TABLE regress_mdbsu_table();
21+ CREATE SCHEMA regress_schema CREATE TABLE regress_mdbsu_table();
2122SET ROLE regress_mdb_superuser_user2;
2223CREATE TABLE regress_mdbsu_table2();
24+ CREATE SCHEMA regress_schema2 CREATE TABLE regress_mdbsu_table2();
2325SET ROLE mdb_read_all_data;
2426-- cannot read all data (fail)
2527TABLE pg_authid;
@@ -45,6 +47,15 @@ TABLE regress_mdbsu_table2;
4547--
4648(0 rows)
4749
50+ -- check USAGE of schema
51+ TABLE regress_schema.regress_mdbsu_table;
52+ --
53+ (0 rows)
54+
55+ TABLE regress_schema2.regress_mdbsu_table2;
56+ --
57+ (0 rows)
58+
4859SET ROLE mdb_write_all_data;
4960CREATE TABLE regress_tt_dat();
5061-- cannot read all data (fail)
@@ -73,6 +84,10 @@ DROP TABLE regress_pgrad_table;
7384DROP TABLE regress_pgrwd_table;
7485DROP TABLE regress_mdbsu_table;
7586DROP TABLE regress_mdbsu_table2;
87+ DROP TABLE regress_schema.regress_mdbsu_table;
88+ DROP TABLE regress_schema2.regress_mdbsu_table2;
89+ DROP SCHEMA regress_schema;
90+ DROP SCHEMA regress_schema2;
7691DROP TABLE regress_superuser_table;
7792DROP TABLE regress_tt_dat;
7893REVOKE CREATE ON DATABASE regression FROM regress_mdb_superuser_user2;
0 commit comments