Invalidate acl.c caches when pg_authid changes.
authorNoah Misch <[email protected]>
Fri, 25 Dec 2020 18:41:59 +0000 (10:41 -0800)
committerNoah Misch <[email protected]>
Fri, 25 Dec 2020 18:42:04 +0000 (10:42 -0800)
commit90383a613b48925f9dbc4ca325a1234956baddab
treee276a8912934ba69cd02f6e582b5ff2a40e7425d
parentedcdbc44eed2eae5c7b40a051998e32ecf4f8f12
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[email protected]
src/backend/utils/adt/acl.c
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql