Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU3SR-00BV7u-30 for pgsql-committers@arkaria.postgresql.org; Thu, 10 Aug 2023 11:03:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qU3SP-00Dwco-AB for pgsql-committers@arkaria.postgresql.org; Thu, 10 Aug 2023 11:03:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU3SP-00Dwcg-36 for pgsql-committers@lists.postgresql.org; Thu, 10 Aug 2023 11:03:57 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qU3SM-001ZeW-Uh; Thu, 10 Aug 2023 11:03:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 37AB3q3f088826; Thu, 10 Aug 2023 07:03:52 -0400 From: Tom Lane To: Jeff Davis cc: Jeff Davis , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Recalculate search_path after ALTER ROLE. In-reply-to: <441542f15012666c621814327415a2cbb0960e10.camel@j-davis.com> References: <441542f15012666c621814327415a2cbb0960e10.camel@j-davis.com> Comments: In-reply-to Jeff Davis message dated "Wed, 09 Aug 2023 23:08:10 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <88824.1691665432.1@sss.pgh.pa.us> Date: Thu, 10 Aug 2023 07:03:52 -0400 Message-ID: <88825.1691665432@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jeff Davis 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