postgresql/src/backend
Noah Misch c463338656 Fix per-session activation of ALTER {ROLE|DATABASE} SET role.
After commit 5a2fed911a, 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
2024-11-15 20:40:00 -08:00
..
access Fix improper interactions between session_authorization and role. 2024-11-11 10:29:54 -05:00
bootstrap Revert "Skip WAL for new relfilenodes, under wal_level=minimal." 2020-03-22 09:24:13 -07:00
catalog Suppress new "may be used uninitialized" warning. 2024-11-02 19:42:58 -07:00
commands Fix improper interactions between session_authorization and role. 2024-11-11 10:29:54 -05:00
executor Improve fix for not entering parallel mode when holding interrupts. 2024-11-08 13:42:01 -05:00
foreign Restrict accesses to non-system views and foreign tables during pg_dump. 2024-08-05 06:05:17 -07:00
jit Monkey-patch LLVM code to fix ARM relocation bug. 2024-11-06 23:10:20 +13:00
lib Fix lock assertions in dshash.c. 2022-07-11 15:51:47 +12:00
libpq Fix regression in TLS session ticket disabling 2024-08-19 12:55:11 +02:00
main Fix outdated --help message for postgres -f 2022-08-15 13:37:42 +09:00
nodes Further fixes for MULTIEXPR_SUBLINK fix. 2022-09-06 16:38:18 -04:00
optimizer Improve fix for not entering parallel mode when holding interrupts. 2024-11-08 13:42:01 -05:00
parser Remove incorrect Assert. 2024-09-11 11:42:24 -04:00
partitioning Fix creation of partition descriptor during concurrent detach+drop 2024-08-12 18:17:56 -04:00
po Translation updates 2024-11-11 13:59:28 +01:00
port Close socket in case of errors in setting non-blocking 2024-01-17 11:24:11 +01:00
postmaster Avoid deadlock during orphan temp table removal. 2024-04-02 14:59:04 -04:00
regex Avoid character classification in regex escape parsing. 2023-04-21 08:21:04 -07:00
replication Revert "For inplace update, send nontransactional invalidations." 2024-11-02 09:05:08 -07:00
rewrite Ensure cached plans are correctly marked as dependent on role. 2024-11-11 09:00:00 -06:00
snowball In the Snowball dictionary, don't try to stem excessively-long words. 2022-08-31 10:42:05 -04:00
statistics Fix incorrectly reported stats kind in "can't happen" ERROR 2024-03-05 16:19:26 +13:00
storage At end of recovery, reset all sinval-managed caches. 2024-10-25 06:51:08 -07:00
tcop Restrict accesses to non-system views and foreign tables during pg_dump. 2024-08-05 06:05:17 -07:00
tsearch Limit to_tsvector_byid's initial array allocation to something sane. 2023-09-25 11:50:28 -04:00
utils Fix per-session activation of ALTER {ROLE|DATABASE} SET role. 2024-11-15 20:40:00 -08:00
.gitignore
common.mk
Makefile
nls.mk Translation updates 2020-08-10 15:21:18 +02:00