]> 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)
commite83e8509b0c83813e7c70fb121cbf67c343a4dbd
tree60e728b0809a8f06bff3a000e548e7a349159a7c
parentb99b6b9d6cac6d45e8652a3f15f0823ab91d51d1
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