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/[email protected] Reviewed-by: Nathan Bossart, Michael Paquier Backpatch-through: 11 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a86d4022788943b6bd3141b64d2a3e1129570087 Modified Files -------------- src/backend/catalog/namespace.c | 6 +- src/test/isolation/expected/search-path-inval.out | 97 +++++++++++++++++++++++ src/test/isolation/isolation_schedule | 1 + src/test/isolation/specs/search-path-inval.spec | 59 ++++++++++++++ 4 files changed, 162 insertions(+), 1 deletion(-)
