Recalculate search_path after ALTER ROLE.
Jeff Davis <jdavis@postgresql.org>
Recalculate search_path after ALTER ROLE. Renaming a role can affect the meaning of the special string $user, so must cause search_path to be recalculated. Discussion: https://postgr.es/m/186761d32c0255debbdf50b6310b581b9c973e6c.camel@j-davis.com Reviewed-by: Nathan Bossart, Michael Paquier Backpatch-through: 11
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/namespace.c | modified | +5 −1 |
| src/test/isolation/expected/search-path-inval.out | added | +97 −0 |
| src/test/isolation/isolation_schedule | modified | +1 −0 |
| src/test/isolation/specs/search-path-inval.spec | added | +59 −0 |
Discussion
- search_path not recomputed when role name changes 6 messages · 2023-07-27 → 2023-08-07