Re: pgsql: Recalculate search_path after ALTER ROLE. - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Recalculate search_path after ALTER ROLE.
Date
Msg-id 88825.1691665432@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Recalculate search_path after ALTER ROLE.  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-committers
Jeff Davis <pgsql@j-davis.com> writes:
> On Wed, 2023-08-09 at 16:12 -0700, Jeff Davis wrote:
>> I'm not sure yet, but this looks like a possible pre-existing bug, or
>> some incorrect assumption I made in fa2e874946.

> Before my commit the behavior is the same. Here's a minimal repro
> ...
> Given that it works fine without parallel query, I'm inclined to call
> this a parallel query bug. The error is coming from RestoreGUCState().

Check.  Seems like we need a way to restore the role GUC without
performing a catalog lookup.  I'll bet there are comparable bugs
with search path, temp tablespace names, etc.

> That being said, the buildfarm is red after my commit, so unless
> someone sees a quick fix here, perhaps I should remove my isolation
> test? I don't want to revert my whole commit, because it seems correct
> and fixes a separate bug.

Yes, just remove the test case for now.  It might or might not be
worth the trouble to put it back later.

            regards, tom lane



pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Document RelationGetIndexAttrBitmap better
Next
From: John Naylor
Date:
Subject: pgsql: Update Solution.pm for new LoongArch CRC symbol