aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2024-11-15 20:39:56 -0800
committerNoah Misch <noah@leadboat.com>2024-11-15 20:39:59 -0800
commitedf80895f6bda824403f843df91cbc83890e4b6c (patch)
tree5b8cb9163ead548f55f2e20c6945c8e4db47fadf /src/backend/tcop/postgres.c
parent91771b3fbbc33e066e9a28a7d85bde87f5a0c900 (diff)
downloadpostgresql-edf80895f6bda824403f843df91cbc83890e4b6c.tar.gz
postgresql-edf80895f6bda824403f843df91cbc83890e4b6c.zip
Fix per-session activation of ALTER {ROLE|DATABASE} SET role.
After commit 5a2fed911a85ed6d8a015a6bafe3a0d9a69334ae, the catalog state resulting from these commands ceased to affect sessions. Restore the longstanding behavior, which is like beginning the session with a SET ROLE command. If cherry-picking the CVE-2024-10978 fixes, default to including this, too. (This fixes an unintended side effect of fixing CVE-2024-10978.) Back-patch to v12, like that commit. The release team decided to include v12, despite the original intent to halt v12 commits earlier this week. Tom Lane and Noah Misch. Reported by Etienne LAFARGE. Discussion: https://postgr.es/m/CADOZwSb0UsEr4_UTFXC5k7=fyyK8uKXekucd+-uuGjJsGBfxgw@mail.gmail.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions