pgsql: Recalculate search_path after ALTER ROLE.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Recalculate search_path after ALTER ROLE.
Date: 2023-08-09 20:31:40
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9f3343e40df6fc92a3913eeb8e240e0f5c6a5cfc

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2023-08-09 20:31:48 pgsql: Recalculate search_path after ALTER ROLE.
Previous Message Jeff Davis 2023-08-09 20:31:31 pgsql: Recalculate search_path after ALTER ROLE.