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 1nDdKq-0005US-HY for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Jan 2022 02:19:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nDdKp-0000cu-7v for pgsql-hackers@arkaria.postgresql.org; Sat, 29 Jan 2022 02:19:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nDdKo-0000cl-V5 for pgsql-hackers@lists.postgresql.org; Sat, 29 Jan 2022 02:19:26 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nDdKm-0001Gl-Oz for pgsql-hackers@lists.postgresql.org; Sat, 29 Jan 2022 02:19:26 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A875C3201D2D; Fri, 28 Jan 2022 21:19:20 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 28 Jan 2022 21:19:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc: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=fm3; bh=UQsMuIhqH3OFlwWgzy+ERhe6eMp4dWDO4WvUcH kEf24=; b=aDiwjm1IhQHZaaV35MvZPuq6P1dLiVhDg7INy5HiBcMWqUZDuH6GQU KJmiykRCwjxl0WU+AoCrS9VX73BR8OoSM/IQPIyqVefTVDKJ+jT41iTd+ljDdHMg eBUSqK84zKJm3ka1LT/sYoX6dG/CHaPilsitOYmDxhyE/CFddRY4YRY73Wolyv0b GTh0+rnuoBibyU9GMBbQ5AJ9hszfHPPSvPA468LhtEa0OzhXfauEF7iThoWHN0wr WCXIOafU3db6wQfB5ziF0Izd7VrhZSxSfo4T33PZsOE+n/OwpBs6vknv/QgS30j5 c+WuNdW89rWu7KFyabl5CnLmQA/AQv4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date: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=fm1; bh=UQsMuIhqH3OFlwWgz y+ERhe6eMp4dWDO4WvUcHkEf24=; b=PWXvrCjaLtsKMIL2KvvHdq56JPdywXsCt O164UuYf+tQ+PQX8ZwnKPjBtb8WNExbz/Oev5fxFczpZWMdTWfD0Dsx/AEsuH+9t QmjMynMPp9QDhry6ydp8zxI/u5pUh7YznlT/nL255h6zqCkQGjg7Zab+81VA1juS NzgGrWuLGOCb8VSuEetvP7wy2y3eqc4Vr7tilD64YqJ3Ds8HGhSmoBL4nRQbCOwP j6gRDhGcdIAXF9mBcb5vHTo2cpPPgBS+ifWWGMb3+WPv2SmsYqcte+PSx3gXBRoe aLLNEgWnzEW/ghA8zFK37NyTB48gyGaNHSic7IYINcySQ3e2vJsjQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeeigdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 28 Jan 2022 21:19:15 -0500 (EST) Date: Sat, 29 Jan 2022 11:19:12 +0900 From: Michael Paquier To: Nathan Bossart Cc: "Bossart, Nathan" , Robert Haas , Fujii Masao , "wangsh.fnst@fujitsu.com" , Andres Freund , Bharath Rupireddy , Greg Sabino Mullane , Tom Lane , "pgsql-hackers@lists.postgresql.org" Subject: Re: make MaxBackends available in _PG_init Message-ID: References: <01c32f6c-8101-1ce4-8295-534cf067df94@oss.nttdata.com> <7239E4F9-A46D-4A61-9200-8B1366D03ADB@amazon.com> <1E960D8B-24D7-43E0-9744-C5F8C52DDEB4@amazon.com> <20220127181815.GA551692@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="c1P93OhEWzseY0HP" Content-Disposition: inline In-Reply-To: <20220127181815.GA551692@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --c1P93OhEWzseY0HP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 27, 2022 at 10:18:15AM -0800, Nathan Bossart wrote: > Alright. I think the comment adjustments still apply, so I split those out > to a new patch. Looks fine after a second look, so applied. As of the issues of this thread, we really have two things to think about: 1) How do we want to control the access of some parameters in a context or another? One idea would be more control through GUCs, say with a set of context-related flags that prevent the read of some variables until they are set. We could encourage the use of GetConfigOption() for that. For MaxBackends, we could add a read-only GUC for this purpose. That's what Andres hinted at upthread, I guess. 2) How do we deal with unwanted access of shared parameters? This one is not really controllable, is it? And we are talking about much more than MaxBackends. This could perhaps be addressed with more documentation in the headers for the concerned variables, as a first step. -- Michael --c1P93OhEWzseY0HP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmH0pCAACgkQnvQgOdby QH3cJQ//eeY+kbmHkAJ1ZBv6Ea5waLML5sdT30kh06Dqiz2MGr3WFRHGBdRTOPUu C3JThGk378ZOlkRH8I5lUiGj3CCeyTb9PlPVV9naZmEcGpTJkdHxN+HDms8RctT2 h6csj/GN5wnCEtWJMkW1+XFe9i+D+0OdRDrz2Ve8wWJi8DFys7PGUfQxlVRTzNJx Zuw3ov52KJNIW7AQKgBVtHv+KbgEIB9o9ZoTPI7dhpRGgXGuPx/3PquLwS/fYDl+ FJKNKNY9qpL/mEFwkBieei+JFZXnkyeoSYnNiF2YALYSz9E4wFsv3Hll3NAyPYji NNvteqWLkDXsMDgDS9Hj5W19SFHJ5tAmR81BexjIBfj4hVP8dka5j2t/JCrgp93X zDjcfHGlt2moa4GmGySBv0iujrv4+/Tbcj+smWG+wIoEIH53H6xJg/7N+vuHOG8H aLXzLEXv+xlVISy9yd478MDM/4opOWeTH9AGibZ5H6QuF1qdeUFCOUrmoP/cTU2r g4uJX2EGMF17NQyqeTQymHRqZL4Vlw8ddFaZmSIOvxFU2DPF2plWxmdE+WTXdCFw WAfuy9jGHjHVBEi0LuOM3rDqictoGAbKeVZMy5UgtJ3PXv+3dpxzR4MDPc4PaYvB DRR6G5tUjYTy8mlI6LsmKeTN8ya5wy16kL29TgNKKQEgXyglPFA= =htfB -----END PGP SIGNATURE----- --c1P93OhEWzseY0HP--