Invalidate acl.c caches when pg_authid changes.
Noah Misch <noah@leadboat.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/acl.c | modified | +6 −3 |
| src/test/regress/expected/privileges.out | modified | +7 −0 |
| src/test/regress/sql/privileges.sql | modified | +6 −0 |
Discussion
- Invalidate acl.c caches for pg_authid.rolinherit changes 2 messages · 2020-12-21