Fix back-patch of "Invalidate acl.c caches when pg_authid changes."

Test script role names and error messages differed in v10, 9.6 and 9.5.

Discussion: https://postgr.es/m/20201221095028.GB3777719@rfd.leadboat.com
This commit is contained in:
Noah Misch 2020-12-25 11:02:56 -08:00
parent 90383a613b
commit 14649bf502
2 changed files with 5 additions and 5 deletions

View File

@ -348,10 +348,10 @@ ERROR: permission denied for relation atest3
DELETE FROM atest3; -- ok
BEGIN;
RESET SESSION AUTHORIZATION;
ALTER ROLE regress_priv_user1 NOINHERIT;
SET SESSION AUTHORIZATION regress_priv_user1;
ALTER ROLE regressuser1 NOINHERIT;
SET SESSION AUTHORIZATION regressuser1;
DELETE FROM atest3;
ERROR: permission denied for table atest3
ERROR: permission denied for relation atest3
ROLLBACK;
-- views
SET SESSION AUTHORIZATION regressuser3;

View File

@ -218,8 +218,8 @@ DELETE FROM atest3; -- ok
BEGIN;
RESET SESSION AUTHORIZATION;
ALTER ROLE regress_priv_user1 NOINHERIT;
SET SESSION AUTHORIZATION regress_priv_user1;
ALTER ROLE regressuser1 NOINHERIT;
SET SESSION AUTHORIZATION regressuser1;
DELETE FROM atest3;
ROLLBACK;