pgsql: Invalidate plan cache after role changes.

Поиск
Список
Период
Сортировка
Искать

pgsql: Invalidate plan cache after role changes.

От:
Noah Misch <noah@leadboat.com>
Дата:
Invalidate plan cache after role changes.

Role membership, role attribute, and database ownership changes may
impact the expected behavior of row-level security policies, but
currently the plan cache doesn't take notice.  To fix, register
syscache callbacks on pg_auth_members, pg_authid, and pg_database
that invalidate the role-dependent plans.  Changes to other
databases' pg_database rows are ignored.

Reported-by: Ilya Staroverov 
Reported-by: Shinya Kato 
Author: Ilya Staroverov 
Author: Shinya Kato 
Co-authored-by: Nathan Bossart 
Reviewed-by: Tom Lane 
Security: CVE-2026-14666
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ffca23839ccaaf8aed5e0729cb041b53f981f04c
Author: Nathan Bossart 

Modified Files
--------------
src/backend/utils/adt/acl.c         |  2 +-
src/backend/utils/cache/plancache.c | 61 ++++++++++++++++++++++++++++++++++++-
src/include/utils/acl.h             |  3 ++
3 files changed, 64 insertions(+), 2 deletions(-)

FAQ