pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Recalculate search_path after ALTER ROLE.
Date: Wed, 09 Aug 2023 20:31:48 +0000
Message-ID: <E1qTpqN-001Foo-90@gemulon.postgresql.org> (raw)

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/00953f1e232912a21bb17b3ad486e6ef8c5eadab

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



view thread (10+ messages)  latest in thread

Message-ID: <E1qTpqN-001Foo-90@gemulon.postgresql.org>
Permalink:  ../E1qTpqN-001Foo-90@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1qTpqN-001Foo-90@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Recalculate search_path after ALTER ROLE.
  In-Reply-To: <E1qTpqN-001Foo-90@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox