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 1qoYPE-001kES-Tz for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Oct 2023 00:09:26 +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 1qoYPC-001WOx-No for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Oct 2023 00:09:23 +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 1qoYPB-001WOo-0m for pgsql-hackers@lists.postgresql.org; Fri, 06 Oct 2023 00:09:23 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoYP8-000E5a-8h for pgsql-hackers@lists.postgresql.org; Fri, 06 Oct 2023 00:09:20 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 6F4F15C036E; Thu, 5 Oct 2023 20:09:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 05 Oct 2023 20:09:16 -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=1696550956; x=1696637356; bh=fY 9CVJRUteNxC9CdO6ycK4m4IwOot2+9GO9kB6CCTtE=; b=AiCDigSSmE/t/7U+bX +c2c5QEcOYbl41QREFmujIyM8eX72GedMmPPqMExmgBib1E2afqkz70zrHiHLA+B yXhHwOTRnHKQtaYNfgIs/B/55JbieGBCsyThYOLSudxxbf0i9QnH5HgpXT2c6l3z S1pd/kGEohSgn6X/yTjscbiIowNBnTy1Cm0GL3tS6U9KjZjoKG+HuJ9lZV7KaUMz z4A/4en10+naB7pzKw/pm1loCG8vyMqBHCTI9jiqDuadkL1rLJefWiJaJV7mCpBR aLMwWsppday3EJAWIivh8Ua2uKULarZ8anApXBYtjPAIpgHgza4z/0gij/XtKcQT c+iw== 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=1696550956; x=1696637356; bh=fY9CVJRUteNxC 9CdO6ycK4m4IwOot2+9GO9kB6CCTtE=; b=aMej2HuG1Wm48pvuhfZ9JR+TmkJ5F NnAHwdfS9V1XCJNwEnO6KkAqakzxzy3xmCFUwk9DsTPJastSJwHMaMWYiZ2v7xWP j7EfIwQ5EL9qxIXHK31TLjreF2VHNnbgqP3m5WMNZQ7Z0UrmIZ7J79fEWGikz7Bn gMNzbeuruu1aeSmffoVAbcn+JG0o98U3sVfmMy59AtPnWJegbZWtgQwg1XfU5Hti qCRVpFwkyJJk5uBM4BYuyNMoI6YCiBMzeG+mIqWwEd3JtF9rHDXhsBLfmLBtUVfz HX+GeFoi4BtGjb17uGVNibnz+f04PzwEbgdGc7SvmYjJeFjPJl9P9eERw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgeehgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Oct 2023 20:09:14 -0400 (EDT) Date: Fri, 6 Oct 2023 09:09:10 +0900 From: Michael Paquier To: Bharath Rupireddy Cc: "Drouvot, Bertrand" , PostgreSQL Hackers 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="/jV2gY3NoIuFn1sl" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/jV2gY3NoIuFn1sl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 05, 2023 at 05:51:31PM +0530, Bharath Rupireddy wrote: > I think changing BGWORKER_BYPASS_ALLOWCONN to 0x0001 and having bits32 > for InitPostgres inputs load_session_libraries and > override_allow_connections can be 0001 in this patch series so that it > can go first, no? This avoids the new code being in the old format and > changing things right after it commits. 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. -- Michael --/jV2gY3NoIuFn1sl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmUfUCYACgkQnvQgOdby QH3a3A/7BjGZfHB0V+PnX00e2YHwJvb6BRSHG+k+1ghUhsz8qjfliN/P+Vplm/np eEqx5q4GMASVwk7+ZGMG7BjecTCyr4FrOoSmvHEne+7ObSyNuT+rJ/37QbZf7Qg3 3HKXVtwK5EGhFXZeQZ4c7xf6eXD9IsWMeYs99Lv9XmIEP2qqcu+2cBgmPsehOXuO Db28ceaRQJsTd83eC4XyhW9yqyz8VoIlVDTXIDql6uPbaS/6Va/HNJuCG6M+opXT 9JSmSB0ZN0/7vpYbfoEB4Tv7T7RbmVkEzKmWhEdmfGTeSk7PoqCdUoLvFgOQ4Hla 7OOGWmMroRr6la29CXJYSyplhzdqI4BHI/IAZFSdmEF4M6o+jzqbKtKslujVfaQC uTNPTBk208Egpvbj0EVpUpGgNyD9uIdFIsgC2RhsB0iwMcU4awFaa8geo1PCUJFX DrIerYNq6xxiCaJ51YvwB8322OL4EMCJ1BjolG38UNYe6NyDcm3mo+jXS0JBRkVH luySZj/OziNJzjizPTGmWO1Widm0dVzx0YfS/v3gq2XzxlGZYRH44aSkWKW8P6Xg wT8NYEor42BJ6lYj3h70tlAEf71h7to5brYBgvF4oGxpxTjucyoGd5z+rQ37eMxw pEuTkh5DqNI6cb8Z3CUtYr93en20lUKHoa/M358CoHjEoh8SDAI= =zIsH -----END PGP SIGNATURE----- --/jV2gY3NoIuFn1sl--