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 1mOVsu-0002uw-LE for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Sep 2021 02:03:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mOVst-0002D7-5p for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Sep 2021 02:03:19 +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 1mOVss-0002Cy-UF for pgsql-hackers@lists.postgresql.org; Fri, 10 Sep 2021 02:03:18 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOVsp-0000ra-IK for pgsql-hackers@postgresql.org; Fri, 10 Sep 2021 02:03:18 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 55B6E3200992; Thu, 9 Sep 2021 22:03:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 09 Sep 2021 22:03:12 -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=ai84beziyGwlolCkDzoBCqo/6Qi cioO97MYN8PSAhHo=; b=HT6++5wFzeHP+CaksWHgK6l9HBnPG78X2d/9il1yNu0 RjA1aEoAE/wxEdFNktp+zcBXBDtgEJ1bZXN2DnNtQ3N3Sclnv5FH87o4fFLxP6Lh QB4UQDzcuRJNzs4P0fwZ2oUiKWFJBemHtBEZrrqZJWJx3rgZBTdH2+77NSgNSVNh 1aGKLTUdR1u3wazKO2bbQVTc2cj94r/eXwDXPe9OpfJuFAxv2yrVkL2E8sePCaoG oh2W023u33Ia1GPZ65lcgQhO2pjul3EzMZtKt6PMn+/B014E2kUvwcM4aeowe4dt gU/PJnqF+jsOY9kn7SQEjHG42nN3QvwwuKdD2rq6jCA== 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=ai84be ziyGwlolCkDzoBCqo/6QicioO97MYN8PSAhHo=; b=g+tHJniVN88HsLJ/Xtge4Y rkepe/gh6ro2Uu7663bmE+JXXgRunzs8yqNEQI3MhQiRZyRE0dgTA3TujIGnI8zU 7A5H1yYZzKr3ZI7I2J9Evm56PCAOHQbAzt1/Ib+v5tpxXDXumwpe9/7h+gQtZPqG pIqzKNsP7hvyTgbBQjY7DdrIAk1vsfPK17GU+9cIoF7ln+n6Co+MVDRZXaXrrVpd YKeV1BqReS09NIJTrsvOyVuB4OsZ8KaVy1Bz7mTLMrVoAER/1XSSkGWJSW4yj9Y8 QfWCcrEZ5SGGtHYKDzWIZT1eq8y3sHtP4PQ69R9EdorB+6GrREuDohVyUOpvPPSg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegtddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Sep 2021 22:03:07 -0400 (EDT) Date: Fri, 10 Sep 2021 11:03:05 +0900 From: Michael Paquier To: "Bossart, Nathan" Cc: Fujii Masao , Justin Pryzby , Andres Freund , Magnus Hagander , Mark Dilger , Don Seiler , "pgsql-hackers@postgresql.org" Subject: Re: Estimating HugePages Requirements? Message-ID: References: <89EFD5FB-3C28-459C-9D6D-C9F93F7C2A54@amazon.com> <578A8F79-FD13-4408-865F-4D31EE5D8123@amazon.com> <4cc5b434-b174-9aae-197b-737db6cac4e3@oss.nttdata.com> <6AE0285D-0917-4C05-B6AA-4AEDD2FCBA52@amazon.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/rHY6cqwXo4BOnzS" Content-Disposition: inline In-Reply-To: <6AE0285D-0917-4C05-B6AA-4AEDD2FCBA52@amazon.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/rHY6cqwXo4BOnzS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 09, 2021 at 09:53:22PM +0000, Bossart, Nathan wrote: > For 0002, I have two small concerns. My first concern is that it > might be confusing to customers when the runtime GUCs cannot be > returned for a running server. We have the note in the docs, but if > you're encountering it on the command line, it's not totally clear > what the problem is. Yeah, that's true. There are more unlikely-to-happen errors that could be triggered and prevent the command to work. I have never tried using error_context_stack in a code path as early as that, to be honest. > Running these commands with log_min_messages=debug5 emits way more > information for the runtime-computed GUCs than for others, but IMO > that is alright. However, perhaps we should adjust the logging in > 0002 to improve the default user experience. I attached an attempt at > that. Registered bgworkers would generate a DEBUG entry, for one. > I'm not tremendously happy with the patch, but I hope that it at least > helps with the discussion. As far as the behavior is documented, I'd be fine with the approach to keep the code in its simplest shape. I agree that the message is confusing, still it is not wrong either as we try to query a run-time parameter, but we need the lock. -- Michael --/rHY6cqwXo4BOnzS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmE6vNkACgkQnvQgOdby QH1ZkBAAn+H5NyOUWtO8IXdBUZQNV83fapDdqKD+AUbKN1uGHKzBqiAZJVtvwJUy KpR7D/smixsuoBBhRLi9oLXUCUMjn9DelRbFu+HEdfA/B/egg8A54JZgjmzHw/Fe n1UmfKXurXRb8OkWtv1kkjPqancEfPPrnOYcC9FzIuiF+04JD97xLrVkuvoUlc1V EFr46fuYaTvih3AGOAj97hS53Pj0FardhTH3rE8S5Evpb4MHtOWwmNhJWZ6NG+dw Zs8zAmbwSKPqQ7xVudV8TInMgFgKgo8v9mCvkatMz5p6XVYZXRfTk9nj91gp47bi jhfe7n3eGjEdg3JSrJ9P53fkniFyYcQ4soMQ5cAw5TVDwW+Bb5AGNAmiigxETiR3 /GIyMx7QoSCYxq+6PS/ZSAf4fFiHD5FtlDurH+K0UYDMCDkxvyCCC98xCJO9Pjtv HlmrFTnmctOBDlCQ/cnhg4B7WmDsRQ2CF9inz8xEBPv22lLgbMRT4ZZsLK1MPWhd 6RwmkCmdjMRBUdzcxkkB4dfsDQWzc06HVQJLDzuZW6JZxhNREgwnujOTmRWPs1nX GxOSOOByMCReDTaE/UgJsWVv9CcLwgmlRtYDPVksxwUDtPZhTxAnf/aA0zqYxjDQ fruOP3m8SFb3eL/Q6unE/sq/FmzGaCgXsf1cf6FElI0yh4x6E+U= =odUa -----END PGP SIGNATURE----- --/rHY6cqwXo4BOnzS--