Invalidate acl.c caches when pg_authid changes.
authorNoah Misch <noah@leadboat.com>
Fri, 25 Dec 2020 18:41:59 +0000 (10:41 -0800)
committerNoah Misch <noah@leadboat.com>
Fri, 25 Dec 2020 18:42:02 +0000 (10:42 -0800)
commit9f8a48bb2c0e5d6557d78d7cce34444b249fbead
tree3992d5986a1cd39ea5507d2f57548c026b63aa56
parent6f7e972e2f44912b15d4a8884534745b1d5f492b
Invalidate acl.c caches when pg_authid changes.

This makes existing sessions reflect "ALTER ROLE ... [NO]INHERIT" as
quickly as they have been reflecting "GRANT role_name".  Back-patch to
9.5 (all supported versions).

Reviewed by Nathan Bossart.

Discussion: https://postgr.es/m/20201221095028.GB3777719@rfd.leadboat.com
src/backend/utils/adt/acl.c
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql