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 1pLQ5N-0007jv-3q for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Jan 2023 14:52:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pLQ5M-0003vK-1W for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Jan 2023 14:52:12 +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 1pLQ2H-0006qT-MX for pgsql-hackers@lists.postgresql.org; Fri, 27 Jan 2023 14:49:02 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLQ2E-0008RJ-FJ for pgsql-hackers@lists.postgresql.org; Fri, 27 Jan 2023 14:49:01 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 6FEC958260B; Fri, 27 Jan 2023 09:48:55 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 27 Jan 2023 09:48:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm3; t=1674830935; x=1674838135; bh=i hFWJG1Bl5Db3Apq0YXS++GeL2gST5uerzLP5wEeH7I=; b=FuzrQcRDB6+UuW6rP 9dS2pCUzSLX/hF9rulWJQAsPIn6Zf2mbkqoRHH4B64ndIrYIbedsxUkZv7utoTge WP6OdLD4aWcZAaPAk2VR2bJ5Hd61wScXUE4rshc0rfl0PJlCU2aZySadV15LS1Gg bpyA594JMFgvrT2UL81xgZjNu4MexSy1XQ83W1XK95Rv/uw+w66cjJFVJlE60Q5a 8afgJHlyPGUANqY7mmcBUpZd4DaQCWvwwd6bHJQVim7HocNO0M9UoXBiJkkWo+YA IfqXswJh9eZ6DA33dsRYXzF7IeZ1LzK9cA7asq8lZqseb+mOH9192cg0wo/RlXXq rbEKg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddviedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeefjeegheetuefhveevudelueeftdejteeiffetvdduhfdtieefgfeutedt veeggfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Jan 2023 09:48:54 -0500 (EST) Message-ID: <8a8fda29-5a68-ba68-a2ff-8d17602b3762@enterprisedb.com> Date: Fri, 27 Jan 2023 15:48:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: Set arbitrary GUC options during initdb Content-Language: en-US To: Tom Lane , pgsql-hackers@lists.postgresql.org References: <2844176.1674681919@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <2844176.1674681919@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 25.01.23 22:25, Tom Lane wrote: > So this invents an initdb switch "-c NAME=VALUE" just like the > one that the server itself has long had. This seems useful. > The specified settings > are applied on the command line of the initial probe calls > (which happen before we've made any config files), and then they > are added to postgresql.auto.conf, which causes them to take > effect for the bootstrap backend runs as well as subsequent > postmaster starts. I would have expected them to be edited into postgresql.conf. What are the arguments for one or the other? Btw., something that I have had in my notes for a while, but with this it would now be officially exposed: Not all options can be safely set during bootstrap. For example, initdb -D data -c track_commit_timestamp=on will fail an assertion. This might be an exception, or there might be others.