Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pY8Py-0004Sv-1s for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Mar 2023 16:38:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pY8Pw-0004yg-Q3 for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Mar 2023 16:38:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pY8Pw-0004yX-Gi for pgsql-hackers@lists.postgresql.org; Fri, 03 Mar 2023 16:38:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pY8Pu-0007M1-7c for pgsql-hackers@postgresql.org; Fri, 03 Mar 2023 16:37:59 +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 323Gbulc2478847; Fri, 3 Mar 2023 11:37:56 -0500 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: pgsql: Harden new test case against force_parallel_mode = regress. In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Fri, 03 Mar 2023 11:16:28 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2478845.1677861476.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 03 Mar 2023 11:37:56 -0500 Message-ID: <2478846.1677861476@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Thu, Mar 2, 2023 at 5:47=E2=80=AFPM Tom Lane wrot= e: >> Per buildfarm: worker processes can't see a role created in >> the current transaction. > Now why would that happen? Surely the snapshot for each command is > passed down from leader to worker, and the worker is not free to > invent a snapshot from nothing. The workers were failing at startup, eg (from [1]): +ERROR: role "regress_psql_user" does not exist +CONTEXT: while setting parameter "session_authorization" to "regress_psq= l_user" Maybe this says that worker startup needs to install the snapshot before doing any catalog accesses? Anyway, I'd be happy to revert this test hack if you care to make the case work. regards, tom lane