pgsql: Invalidate acl.c caches when pg_authid changes.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Invalidate acl.c caches when pg_authid changes.
Date: 2020-12-25 18:43:29
Message-ID: E1kss3l-0000Lm-6T@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/08db7c63f34e6d9a402af81596e303f5b38d19b0

Modified Files
--------------
src/backend/utils/adt/acl.c | 9 ++++++---
src/test/regress/expected/privileges.out | 7 +++++++
src/test/regress/sql/privileges.sql | 6 ++++++
3 files changed, 19 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2020-12-25 19:00:25 pgsql: fixes docs and missing initdb help option for commit 978f869b99
Previous Message Erik Rijkers 2020-12-25 18:30:01 Re: pgsql: Add key management system