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:03 +0000 (10:42 -0800)
commitc9669880604221489bd87b8dbe686462d19b4ce4
treeb4e14e399e6e829e02fc28760dc9ee3a32fe9f0f
parentf853ffa22055a27f8d2239982edff6e4b8b958d4
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