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 1tPkT8-00F0R6-EF for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Dec 2024 15:35:42 +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 1tPkT7-00BsyD-G6 for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Dec 2024 15:35:41 +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 1tPkT7-00Bsy5-75 for pgsql-bugs@lists.postgresql.org; Mon, 23 Dec 2024 15:35:40 +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.96) (envelope-from ) id 1tPkT5-000CRt-1I for pgsql-bugs@lists.postgresql.org; Mon, 23 Dec 2024 15:35:39 +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 4BNFZaKO1349369; Mon, 23 Dec 2024 10:35:37 -0500 From: Tom Lane To: Laurenz Albe cc: pgsql-bugs@lists.postgresql.org Subject: Re: Commit 5a2fed911a broke parallel query In-reply-to: <8befc845430ba1ae3748af900af298788e579c89.camel@cybertec.at> References: <8befc845430ba1ae3748af900af298788e579c89.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Mon, 23 Dec 2024 11:55:28 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1349367.1734968136.1@sss.pgh.pa.us> Date: Mon, 23 Dec 2024 10:35:36 -0500 Message-ID: <1349368.1734968136@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > This is a script to reproduce the problem: As commented in 73c9f91a1, This all seems very accidental and probably not the behavior we really want, but a security patch is no time to be redesigning things. Perhaps this thread is a good place to start the discussion. In the security-team discussion that led up to 73c9f91a1, I'd been wondering why parallel worker start enforces any connection restrictions at all. If we'd like the use of parallelism to be more-or-less transparent, we shouldn't apply these checks, and not the !am_superuser ones in InitPostgres either. If we do want to apply permissions checks in parallel worker start, why should we think that the failure in this example is wrong? regards, tom lane