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 1pLRhp-0005Gk-MV for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Jan 2023 16:36:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pLRhm-00044l-TB for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Jan 2023 16:35:58 +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 1pLRhm-00044V-Ju for pgsql-hackers@lists.postgresql.org; Fri, 27 Jan 2023 16:35:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLRhg-0000xZ-1c for pgsql-hackers@lists.postgresql.org; Fri, 27 Jan 2023 16:35:57 +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 30RGZm3O3337561; Fri, 27 Jan 2023 11:35:48 -0500 From: Tom Lane To: "David G. Johnston" cc: Robert Haas , Peter Eisentraut , pgsql-hackers@lists.postgresql.org Subject: Re: Set arbitrary GUC options during initdb In-reply-to: References: <2844176.1674681919@sss.pgh.pa.us> <8a8fda29-5a68-ba68-a2ff-8d17602b3762@enterprisedb.com> <3331317.1674833645@sss.pgh.pa.us> <3332912.1674834822@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Fri, 27 Jan 2023 09:01:51 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3337559.1674837348.1@sss.pgh.pa.us> Date: Fri, 27 Jan 2023 11:35:48 -0500 Message-ID: <3337560.1674837348@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Fri, Jan 27, 2023 at 8:53 AM Tom Lane wrote: >> Anyway, it seems like I gotta work harder. I'll produce a >> new patch. > How about just adding a "section" to the end of the file as needed: > # AdHoc Settings Specified During InitDB > max_connections=75 > ... Nah, I think that would be impossibly confusing. One way or another the live setting has to be near where the GUC is documented. We will have to do add-at-the-end for custom GUCs, of course, but in that case there's no matching comment to confuse you. regards, tom lane