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 1qoeLH-002Ioo-1M for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Oct 2023 06:29:43 +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 1qoeLE-003NOe-Ii for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Oct 2023 06:29:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoeLE-003NOW-8N for pgsql-hackers@lists.postgresql.org; Fri, 06 Oct 2023 06:29:41 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoeLC-000MWH-3X for pgsql-hackers@lists.postgresql.org; Fri, 06 Oct 2023 06:29:40 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id DC12C3200A10; Fri, 6 Oct 2023 02:29:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 06 Oct 2023 02:29:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1696573774; x=1696660174; bh=pc z8i1C9+IZ/ZHJCNUqe7im89py631qqk2zlZbRkwyQ=; b=nk3LRRTNPqNyojyVMs BT6i3/+pq5SNv+lHNyzHHRnURYlLpQI3osKWW2NAQa54iOxwagsjXL/miiDEWSRa HzgZpTN39rRF6tjW4XZnTDH8ti8TtGxxmyjc26tw4vC0dF1wMo2ItYVOeEjJRbBR NpYpYSxDj4MCREOMQ7f/iouYZyhAmYFb2PY/ayRX/6Bd93jrWZkIuYLBnPR5eRD7 8U1M7tLqkHrXDU/G5zjkRmpGDGGO8dlKQtgiwAqxY7mhTJ7N6a4DctqTHBgxBWVZ yv/Z7nOJ5P9cmu8bAeqXS++UxoDaGxg9YBtZKSYyFh5azyiQP/GdgO5nrKRvc6PZ t30A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1696573774; x=1696660174; bh=pcz8i1C9+IZ/Z HJCNUqe7im89py631qqk2zlZbRkwyQ=; b=pKghv/YuGqiZQ/ezXlQ2ZInHjH9eo 71y4WKUlgPFL8Ocw7JLt6LZ/m+3Uj7FfhFxeAVtqMDtIBIVnXHIUVUMIwIhYfOl0 QN/I7byl9Ymnt869iH0STc3d/KcI+FYMuMdGflmNOMJGh9QGoUaGjN5cTNvA27zF nNoU/mZ/4O5WX6lQBP3n+hr16s06VBo/KXACRlKRa/mzdcLz5m0y2bLwb5e0ZJOI 21od2TjiS2C1hfZlY9+SWWC0WpmpvGuoQRFlbXOWpKsnEZErdSJY34U4ISG9bZn3 +jCiQzLzY1Y4V63Z8aPBA70c21oMSgOY40v13wcTKLFVjUzXkuPIZ4/3A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgeehgddutdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepgeffjeevgfevuddvjedtvddt ieejheduueelvddufedtgfefjedvkeevkeeivddvnecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 6 Oct 2023 02:29:31 -0400 (EDT) Date: Fri, 6 Oct 2023 15:29:28 +0900 From: Michael Paquier To: Bharath Rupireddy Cc: "Drouvot, Bertrand" , PostgreSQL Hackers , Andres Freund Subject: Re: Add a new BGWORKER_BYPASS_ROLELOGINCHECK flag Message-ID: References: <566c1686-c80b-4d4a-b496-b00ac428a095@gmail.com> <83f72bb9-f3cf-4344-8d4d-45e128813d58@gmail.com> <26e7cd6a-6dd1-4b08-975b-62603eeb6f3f@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AN6itIkstr5QjEGt" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --AN6itIkstr5QjEGt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 06, 2023 at 09:09:10AM +0900, Michael Paquier wrote: > I am not completely sure what you mean here. We've never supported > load_session_libraries for background workers, and I'm not quite sure > that there is a case for it. FWIW, my idea around that would be to > have two separate sets of flags: one set for the bgworkers and one set > for PostgresInit() as an effect of load_session_libraries which looks > like a fuzzy concept for bgworkers. I have applied v1 a few hours ago as of 991bb0f9653c. Then, the buildfarm has quickly complained that a bgworkers able to start with=20 BYPASS_ALLOWCONN while the database has its access restricted could spawn workers that themselves try to connect to the database restricted, causing the test to fail. I have applied fd4d93d269c0 as a quick way to avoid the spawn of workers in this case, and the buildfarm has turned back to green. Now, there's been a second type failure on serinus even after all that: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dserinus&dt=3D2023= -10-06%2001%3A04%3A05 The step running a `make check` on worker_spi in the run has worked: https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Dserinus&dt= =3D2023-10-06%2001%3A04%3A05&stg=3Dmodule-worker_spi-check But the follow-up step doing an installcheck with worker_spi has not. And this looks like a crash: https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Dserinus&dt= =3D2023-10-06%2001%3A04%3A05&stg=3Dtestmodules-install-check-C The logs reported by this step are not really helpful, as they contain only information about the sql/ tests in the modules. It is the first time that this stuff is tested, so this could be a race condition that's been around for some time but we've never seen it until now, or it could be an issue in the test I fail to see. Andres, are there logs for this TAP test on serinus? Or perhaps there is a core file that could be looked at? The other animals are not showing anything for the moment. -- Michael --AN6itIkstr5QjEGt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmUfqUgACgkQnvQgOdby QH3nRhAAgyQS8onRjCugolqmLdp6Th1EZcIekuIVjUnwrpD9PVJyZlBBcRe1JeFo ymCEIKyIX2pQCB21pNUqlqrEvxc0gctBYm7PsGPovuxT5N1Dq2/x69wJHd1lz/aW 93wiAIFj8LGHguke+JJ/UKxE4JUUoHa0u7+0LwBYtm1e/6Z0yLRZTgrbsPtWGuox Sp60L8cCKtqYWsz7/T95eQnP2U/KwoNSIyj1mxV/+PUElGSprNZYcM2j5reDyqnf BowQQj+ssdoXvQ03zyx8TysW43EWNkNaysQfpYPjCE93IytYIw5BSnkFgo809cI9 E2xFmHiFSd4o72e6YCoR6MjAkN7dwP3GHGETOU/5cF9xv8R+kmuwOKUrmKqmrLoq VOYxzkT2dN2GSP46eVgG3QLYHQY8qeQF1vMnZwbjVNVQHAZr6+8qKdtHTDcdHnZ3 oyvtex50TLeExQex+myJSme8vAs/MSUY9XeaXgcAU/DGDvtaDyzXCGdhrd1z8170 CDojF+bGyUekQU4t3Bd8F546rMWSvrkcMmDe0gwvCyquemql0U9Iuyx1U9bQbg0c 2Pz4/nG5llkxqubc6nkbmNtD24UVuhsSk9xVqpV9kS+mNV8Z/TG6MBa8d0qv7rea QMyNoCUV5LVO5GX9kDJUHFMIPKPVuFKrvMVo1IwfbLjvgoyHlFw= =jPL/ -----END PGP SIGNATURE----- --AN6itIkstr5QjEGt--