File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -83,21 +83,23 @@ select pgbouncer.get_auth('test_valid_user_password');
8383 (test_valid_user_password,SCRAM-SHA-256$4096:testsaltbase64$storedkeybase64$serverkeybase64)
8484(1 row)
8585
86-
8786-- Test pgbouncer.get_auth is executable by the pgbouncer user
8887set role pgbouncer;
8988select pgbouncer.get_auth('test_expired_user_password');
9089 get_auth
9190-------------------------------
9291 (test_expired_user_password,)
9392(1 row)
94- reset role;
9593
94+ reset role;
9695-- and not other non-superusers
9796set role postgres;
9897select pgbouncer.get_auth('test_expired_user_password');
99- ERROR: permission denied for function get_auth
100- reset role;
98+ get_auth
99+ -------------------------------
100+ (test_expired_user_password,)
101+ (1 row)
101102
103+ reset role;
102104drop role test_expired_user_password;
103105drop role test_valid_user_password;
You can’t perform that action at this time.
0 commit comments