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 1neOIM-0006BX-1X for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2022 21:43:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1neOIK-0006p5-VZ for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Apr 2022 21:43:28 +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 1neOIK-0006ow-ME for pgsql-hackers@lists.postgresql.org; Tue, 12 Apr 2022 21:43:28 +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 1neOIH-0000w5-KT for pgsql-hackers@lists.postgresql.org; Tue, 12 Apr 2022 21:43:27 +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 23CLhHYa995399; Tue, 12 Apr 2022 17:43:17 -0400 From: Tom Lane To: Robert Haas cc: Nathan Bossart , Andres Freund , Julien Rouhaud , Michael Paquier , "Bossart, Nathan" , Fujii Masao , "wangsh.fnst@fujitsu.com" , Bharath Rupireddy , Greg Sabino Mullane , "pgsql-hackers@lists.postgresql.org" Subject: Re: make MaxBackends available in _PG_init In-reply-to: References: <20220411164408.GA1915258@nathanxps13> <20220411204442.GA2004824@nathanxps13> <20220411211435.GA2057981@nathanxps13> <20220412174427.sngj2uexzsttazs2@alap3.anarazel.de> <20220412180306.GA2063516@nathanxps13> <908945.1649791317@sss.pgh.pa.us> <20220412195908.GA2064996@nathanxps13> <918045.1649797122@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Tue, 12 Apr 2022 17:14:34 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <995397.1649799797.1@sss.pgh.pa.us> Date: Tue, 12 Apr 2022 17:43:17 -0400 Message-ID: <995398.1649799797@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > On Tue, Apr 12, 2022 at 4:58 PM Tom Lane wrote: >> It seems after a bit of reflection that what we ought to do is identify >> the subset of PGC_POSTMASTER GUCs that feed into shared memory sizing, >> mark those with a new GUC flag, and not allow them to be changed after >> shared memory is set up. > I dunno, I feel like this is over-engineered. It probably is. I'm just offering this as a solution if people want to insist on a mechanism to prevent unsafe GUC changes. If we drop the idea of trying to forcibly prevent extensions from Doing It Wrong, then we don't need this, only the extra hook. regards, tom lane