mirror of https://github.com/postgres/postgres
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:
parent
90383a613b
commit
14649bf502
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue