pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Invalidate acl.c caches when pg_authid changes.
Date: Fri, 25 Dec 2020 18:43:29 +0000
Message-ID: <E1kss3l-0000Lm-6T@gemulon.postgresql.org> (raw)

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(-)



view thread (7+ messages)

Message-ID: <E1kss3l-0000Lm-6T@gemulon.postgresql.org>
Permalink:  ../E1kss3l-0000Lm-6T@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kss3l-0000Lm-6T@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: Invalidate acl.c caches when pg_authid changes.
  In-Reply-To: <E1kss3l-0000Lm-6T@gemulon.postgresql.org>
  References: <E1kss3l-0000Lm-6T@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox