Recalculate search_path after ALTER ROLE.
authorJeff Davis <jdavis@postgresql.org>
Mon, 7 Aug 2023 22:11:18 +0000 (15:11 -0700)
committerJeff Davis <jdavis@postgresql.org>
Mon, 7 Aug 2023 22:11:18 +0000 (15:11 -0700)
commita86d4022788943b6bd3141b64d2a3e1129570087
tree94af28e0e1f4ba4b84810ee5aa3e3c8b41c41d34
parent66c1983d96b66edbae1f1eb0070b447f128176e2
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
src/backend/catalog/namespace.c
src/test/isolation/expected/search-path-inval.out [new file with mode: 0644]
src/test/isolation/isolation_schedule
src/test/isolation/specs/search-path-inval.spec [new file with mode: 0644]