@@ -17,7 +17,8 @@ INSERT INTO permissions.user1_table SELECT g, g FROM generate_series(1, 20) as g
1717SET ROLE user2;
1818SELECT create_range_partitions('permissions.user1_table', 'id', 1, 10, 2);
1919NOTICE: sequence "user1_table_seq" does not exist, skipping
20- ERROR: only the owner or superuser can change partitioning configuration of table "user1_table"
20+ WARNING: only the owner or superuser can change partitioning configuration of table "user1_table"
21+ ERROR: new row violates row-level security policy for table "pathman_config"
2122/* Should be ok */
2223SET ROLE user1;
2324SELECT create_range_partitions('permissions.user1_table', 'id', 1, 10, 2);
@@ -44,14 +45,16 @@ SELECT * FROM pathman_config_params;
4445/* Should fail */
4546SET ROLE user2;
4647SELECT set_enable_parent('permissions.user1_table', true);
47- ERROR: only the owner or superuser can change partitioning configuration of table "user1_table"
48+ WARNING: only the owner or superuser can change partitioning configuration of table "user1_table"
49+ ERROR: new row violates row-level security policy for table "pathman_config_params"
4850SELECT set_auto('permissions.user1_table', false);
49- ERROR: only the owner or superuser can change partitioning configuration of table "user1_table"
51+ WARNING: only the owner or superuser can change partitioning configuration of table "user1_table"
52+ ERROR: new row violates row-level security policy for table "pathman_config_params"
5053/* Should fail */
5154SET ROLE user2;
5255DELETE FROM pathman_config
5356WHERE partrel = 'permissions.user1_table'::regclass;
54- ERROR : only the owner or superuser can change partitioning configuration of table "user1_table"
57+ WARNING : only the owner or superuser can change partitioning configuration of table "user1_table"
5558/* No rights to insert, should fail */
5659SET ROLE user2;
5760INSERT INTO permissions.user1_table (id, a) VALUES (35, 0);
0 commit comments