aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-12-11 17:45:35 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-12-11 17:45:35 -0500
commit0845264642d855d92c63c5d05a4ef83245ca16c5 (patch)
tree199ef476f9d537d1a0d87e35e52d1151d21d0d8f
parent58af84f4bba5c87b352cf40e276e287fd289bd77 (diff)
downloadpostgresql-0845264642d855d92c63c5d05a4ef83245ca16c5.tar.gz
postgresql-0845264642d855d92c63c5d05a4ef83245ca16c5.zip
Make rowsecurity test clean up after itself, too.
Leaving global objects like roles hanging around is bad practice.
-rw-r--r--src/test/regress/expected/rowsecurity.out3
-rw-r--r--src/test/regress/sql/rowsecurity.sql3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/test/regress/expected/rowsecurity.out b/src/test/regress/expected/rowsecurity.out
index 5eb61c46aa2..430da554d5f 100644
--- a/src/test/regress/expected/rowsecurity.out
+++ b/src/test/regress/expected/rowsecurity.out
@@ -2212,3 +2212,6 @@ RESET client_min_messages;
DROP USER rls_regress_user0;
DROP USER rls_regress_user1;
DROP USER rls_regress_user2;
+DROP USER rls_regress_exempt_user;
+DROP ROLE rls_regress_group1;
+DROP ROLE rls_regress_group2;
diff --git a/src/test/regress/sql/rowsecurity.sql b/src/test/regress/sql/rowsecurity.sql
index 181043f4164..ee28a2cbdc4 100644
--- a/src/test/regress/sql/rowsecurity.sql
+++ b/src/test/regress/sql/rowsecurity.sql
@@ -933,3 +933,6 @@ RESET client_min_messages;
DROP USER rls_regress_user0;
DROP USER rls_regress_user1;
DROP USER rls_regress_user2;
+DROP USER rls_regress_exempt_user;
+DROP ROLE rls_regress_group1;
+DROP ROLE rls_regress_group2;