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 1mSWkv-0005uw-HT for pgsql-committers@arkaria.postgresql.org; Tue, 21 Sep 2021 03:47:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mSWkt-0003jP-5g for pgsql-committers@arkaria.postgresql.org; Tue, 21 Sep 2021 03:47:39 +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 1mSWks-0003jD-Bl for pgsql-committers@lists.postgresql.org; Tue, 21 Sep 2021 03:47:38 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSWkk-0003hZ-WA for pgsql-committers@lists.postgresql.org; Tue, 21 Sep 2021 03:47:36 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CC1C85C00B4; Mon, 20 Sep 2021 23:47:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 20 Sep 2021 23:47:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=vagZi8KJh+9AB2Ol8XRWHdHW6LL gi1Ys8ZoUfJLya6c=; b=hj2ThJivgsaNnrIF8vMnURp6AmA0xWJt9gX19DOB/iY xU3bkje5ojT6vIyzGPtjhr8tFpetLMfWlSwF7INMKjp1TS9gfg72xQVpV2cfEs5D DAO8LkOiVU0k09pxBI6sJe6o2Z/6fMnviYT5hi6QtoBs5N3dqgJ4nuATA8BLgaHq 4dy2Pe35VMdWbRWe7NHGEF/dvlHN3ZxK535XAtHUN01BCrQEAfynqZJBSIvmiL9L lSw5ufM8cbRzV4eT1/VJTbhgZrvNU5N6qO/g4obYCbprNzYH2u3Qx0rQ/7HrLmIa zfR4cEzUA/w1SoyFpRn43K3d0kkxD0YSBx0+KrHZHng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=vagZi8 KJh+9AB2Ol8XRWHdHW6LLgi1Ys8ZoUfJLya6c=; b=uMBpn5weKL7TOzp+pGrN8U Lsq4g4blgxYnkCMETT4lOLXm29gYStauwz5zp4Rnnfo/EKEDzc9NgbYQ8m6UEPzw 3dBQAjnTbUHfNwkAh4jb2Sl3sa7NQSzf0g8ORmygOxWLbZzet4vEu8OgslCNIcrf P0xOvGfjVsx9gcqmRx7U2o0EMDC5+fEx/0zR048OAPibmE/RM4xsqxCIrPfIJVhx 7zXEZjiAS/e9OFbqgQjo2sIRd2SYh3ZNvOcVaSZvLJho3u5EA2tipn+lHvwGkRtA xNHYAn30OEG0vX9jHp4ep9ETQGwmFahL++XIak32rX8AOF60usBDKxDZAGL3Te9A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeifedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtroertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeehgedtueehkeetgeeuvedtleel keeggeefteefjeejgfekheeikeevjeehudejheenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Sep 2021 23:47:27 -0400 (EDT) Date: Tue, 21 Sep 2021 12:47:24 +0900 From: Michael Paquier To: Andres Freund Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Support "postgres -C" with runtime-computed GUCs Message-ID: References: <20210921032040.lyl4lcax37aedx2x@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kFP8zuAt3KbB04Hp" Content-Disposition: inline In-Reply-To: <20210921032040.lyl4lcax37aedx2x@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --kFP8zuAt3KbB04Hp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Sep 20, 2021 at 08:20:40PM -0700, Andres Freund wrote: > So the problem is that -C data_checksums requires permissions to be dropped, > but the way it's invoked here that's not guaranteed... And I don't think we > should remove that requirement, given that we're actually doing stuff to the > lock file... Hmm. One way I can think of to keep the test would be something like that to avoid problems with pg_ctl redirecting the server's stderr to stdout (hence the tweak for log_min_messages): pg_ctl start -s -o '-C data_checksums -c log_min_messages=fatal' This would print the parameter, while getting to stderr mostly a "could not start server". Would that work for you? -- Michael --kFP8zuAt3KbB04Hp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmFJVcwACgkQnvQgOdby QH3WDhAAjx6ovx/jSYmu/zD6tG1fqwXUeI3BwbXX/mFbzoQZaBBamLswaMz5yALu p9WWjubmFOkkeunHxU4cB9T1bz7VnhvLOjY18CIM7Xs1zdbEdy3dz3XP3WIw1I72 K3ckYO7npc95A7S1eCmowuknxTTiykSV9zXyI8WlNkdX7HOdxdcfopuzDSSlBkY2 atVswazs0wV83RHp8bHaDQ81LoF8QAzZA3SHWtOOvZ2NvIiIW/w6w5iwmu4p+IOw AKazI6qD0x/HlPXxp7ObXIocRDTmCQLY3qyDmvavmqScBIYZPzzE4hCxly1mpNgB QoPNxI622JQ/xAQs6ugynZd97Ed7GvTyGLDGChjth2znZeybjFthHxTyre/foids DC6nlrgoPYlUCrAZUq8J1sV3j7SWowy4AiRe+1K5J1JaRrUMxgNYNaG5nZ5Na5gH Xc9C/KK0mR1Mxr16L5wEstEvej58ZOGMGbf5v9PNBXMI15NCZP+mIE8X5Y6DuZGj nUzLKkCzL1J7fXeWXUewhq7hKSAmpbM1qwrbmirFfHQbBUet5bT2XM2BGNWjm37u Eu29pUOAkTGX6SitwJTe/Tst03iMXK9uDGUaYROjLAki04kf+z9q0k1AxTFpaEru 9ldx7YyacvDrIOEfL60vTlUru20p9SIL5Epb04EF4WE1MytT0jc= =QB9s -----END PGP SIGNATURE----- --kFP8zuAt3KbB04Hp--