]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Invalidate acl.c caches when pg_authid changes.
authorNoah Misch <noah@leadboat.com>
Fri, 25 Dec 2020 18:41:59 +0000 (10:41 -0800)
committerNoah Misch <noah@leadboat.com>
Fri, 25 Dec 2020 18:42:03 +0000 (10:42 -0800)
commitd7c197f46251cfdf89807f6ab2bc84a0b12c9cad
tree4c7efb7e079abda71cc68f8b8db2eb1e2e696781
parent1a6b1c460b4fa6c8ae8419d48ec5b1446820e13e
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
src/backend/utils/adt/acl.c
src/test/regress/expected/privileges.out
src/test/regress/sql/privileges.sql