Skip to content

Commit 0845264

Browse files
committed
Make rowsecurity test clean up after itself, too.
Leaving global objects like roles hanging around is bad practice.
1 parent 58af84f commit 0845264

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/test/regress/expected/rowsecurity.out

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2212,3 +2212,6 @@ RESET client_min_messages;
22122212
DROP USER rls_regress_user0;
22132213
DROP USER rls_regress_user1;
22142214
DROP USER rls_regress_user2;
2215+
DROP USER rls_regress_exempt_user;
2216+
DROP ROLE rls_regress_group1;
2217+
DROP ROLE rls_regress_group2;

src/test/regress/sql/rowsecurity.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,3 +933,6 @@ RESET client_min_messages;
933933
DROP USER rls_regress_user0;
934934
DROP USER rls_regress_user1;
935935
DROP USER rls_regress_user2;
936+
DROP USER rls_regress_exempt_user;
937+
DROP ROLE rls_regress_group1;
938+
DROP ROLE rls_regress_group2;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy