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 1pJOjU-0007QH-G3 for pgsql-bugs@arkaria.postgresql.org; Sun, 22 Jan 2023 01:01:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pJOjT-00076a-9T for pgsql-bugs@arkaria.postgresql.org; Sun, 22 Jan 2023 01:01:15 +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 1pJOjT-00076R-1G for pgsql-bugs@lists.postgresql.org; Sun, 22 Jan 2023 01:01:15 +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 1pJOjQ-0007PQ-Bx for pgsql-bugs@lists.postgresql.org; Sun, 22 Jan 2023 01:01:14 +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 30M118RJ1122630; Sat, 21 Jan 2023 20:01:08 -0500 From: Tom Lane To: Tomas Vondra cc: david_sisson@dell.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17757: Not honoring huge_pages setting during initdb causes DB crash in Kubernetes In-reply-to: <127328f2-4e01-e9ec-c9b1-76aef967343f@enterprisedb.com> References: <17757-dbdfc1f1c954a6db@postgresql.org> <4ce40288-5b88-f9fb-ea11-fc932c61472b@enterprisedb.com> <1113115.1674343827@sss.pgh.pa.us> <127328f2-4e01-e9ec-c9b1-76aef967343f@enterprisedb.com> Comments: In-reply-to Tomas Vondra message dated "Sun, 22 Jan 2023 01:55:01 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1122628.1674349268.1@sss.pgh.pa.us> Date: Sat, 21 Jan 2023 20:01:08 -0500 Message-ID: <1122629.1674349268@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tomas Vondra writes: > On 1/22/23 00:30, Tom Lane wrote: >> Yeah, that proposal is a non-starter. I could see providing an >> initdb option to adjust the value applied during initdb, though. >> Ideally, maybe what we want is a generalized switch that could >> replace any variable in the sample config, along the lines of >> the server's "-c foo=bar". I recall having tried to do that and >> having run into quoting hazards, but I did not try very hard. > Yeah, I was looking for something like "-c" in initdb, only to realize > there's nothing like that. The main "problem" with adding that is that > we're unlikely to backpatch that (I guess), and thus it does not really > solve the issue for the OP. > I'm not sure we'd be keen to backpatch a change of the default, but > maybe we would ... Back-patching a change of default seems like REALLY a non-starter. Perhaps adding a switch (which would break nothing if not used) could be discussed, though. regards, tom lane