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 1nu0pS-0007Vx-Vv for pgsql-hackers@arkaria.postgresql.org; Wed, 25 May 2022 23:54:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nu0pQ-0004f3-NA for pgsql-hackers@arkaria.postgresql.org; Wed, 25 May 2022 23:54: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 1nu0pP-0004eu-9l for pgsql-hackers@lists.postgresql.org; Wed, 25 May 2022 23:54:12 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nu0pH-0000bu-PV for pgsql-hackers@postgresql.org; Wed, 25 May 2022 23:54:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 10CCE5C0114; Wed, 25 May 2022 19:54:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 25 May 2022 19:54:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1653522841; x=1653609241; bh=1D6hoQD0yj GJPgsmgaNkw6XNIHFMASge0whlpTmKDas=; b=E6QvrxjjabQwNYaUux16fR93Uo ZR5hU6G4sV4/eV/U+VOlx6YYGEq+udks2dizqBxqXed/KELtxOJ8yGFiBqHeksao ufk8yDw6EkOMwtse3BMiHvO2Z4M0ezDzKUkNKkPIx5nMgPAi2h0pyzpKFQ2UByAo tQ8RLRL8K6HsjI1p0qAopp11aH03C6RuGcSIUskFYfgkWCKZQzVdrgT00dYEqdM5 aN84VFP0bW3jx1V5TqxH21gpiG57qQHB/2CS5im94pE6YtPnBjSUJ8iKqxQ3JDNQ SvgiCxqlLECWRhRAtytlYwidn9xkijYoWgVvZDWylQT8VdERjBaAIGT5FyfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= fm1; t=1653522841; x=1653609241; bh=1D6hoQD0yjGJPgsmgaNkw6XNIHFM ASge0whlpTmKDas=; b=r4B91uDAy0jwKnexzg6RqfM5tNTdxb/bVm83seZaAf3x f0MZOFovQ2qEmCTU0XkDtTbd1xnPrlMXlklUS/0XvgCUOuepXcUwZ/nfDJ8rBMBG VAwn/0HkwjGARex9Clz2xdDVpAmGI8ytSA2iAOr87Cn6Wc33H8bKK3PeXjK/jlm3 191XNwtT+RXuq7BSDq03To2Po3ArRBWtmxve1zx8KkUtLTmx8eLzwuXXlzbzFA7e VzjOsdhRiKsqVfQcEAbeZkMNLd4OullyFQD7oRYQkcFpiJYHQu718Oz0BcleyhJI tZJU4nQkHh1RCGGcztR51wrpbfBrcyKiUBZbKIb57g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeeigddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf evuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpeetleeifedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthh grvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 May 2022 19:53:59 -0400 (EDT) Date: Thu, 26 May 2022 08:53:55 +0900 From: Michael Paquier To: Kyotaro Horiguchi Cc: andres@anarazel.de, nathandbossart@gmail.com, pgsql-hackers@postgresql.org Subject: Re: fix stats_fetch_consistency value in postgresql.conf.sample Message-ID: References: <20220525042849.vpgxdcsbcr3uq4ek@alap3.anarazel.de> <20220525.155623.1140106707572944089.horikyota.ntt@gmail.com> <20220525.161207.1389849691748709887.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WoYbkTpfKyH2FMAS" Content-Disposition: inline In-Reply-To: <20220525.161207.1389849691748709887.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --WoYbkTpfKyH2FMAS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 25, 2022 at 04:12:07PM +0900, Kyotaro Horiguchi wrote: > (sigh..) As the result, no need to fix in this area for now, and I > don't think there's any generic and reliable way to detect > inconsistencies of guc variable definitions. Hmm. Making the automation test painless in terms of maintenance consists in making it require zero manual filtering in the list of GUCs involved, while still being useful in what it can detect. The units involved in a GUC make the checks between postgresql.conf.sample=20 and pg_settings.boot_value annoying because they would require extra calculations depending on the unit with a logic maintained in the test. I may be missing something obvious, of course, but it seems to me that as long as you fetch the values from postgresql.conf.sample and cross-check them with pg_settings.boot_value for GUCs that do not have units, the maintenance would be painless, while still being useful (it would cover the case of enums, for one). The values need to be lower-cased for consistency, similarly to the GUC names. -- Michael --WoYbkTpfKyH2FMAS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmKOwZMACgkQnvQgOdby QH2j6w//Rdjj3DlPTSTEsiXmwtFPXVerdRRPzBsXP0s38dueXWrmDr/JoUVpEUnL w5Qw0uQynHY3AXaN5CfXe6Wep1lERJbUoAOdTG5rs6695zpV7VDt6ck6RsiQUJz9 dClBVEIL8sm2jdtUvu3WbOJ5oj9uzDe3XBA0/6SPY1uyaKXPTJHqsuXYI4YEhCbQ cY0loerRH3+2n/Gz+YOgXtgj/x/FbPrjbG8OHz5BqSOQ4zDsLCTNhOW1bIZHqb53 mFNZlv9vJ251pHFH2yp13cZQc8BFZq3XffVHxc+U7Nw/w32rXbMX2Kp5rzSq/Zf8 qqDapHUxn7zGtEH1B1d3bqQUim5BXZS8Jm/p83JJlHL126ajcCP9+bCKKQQjGsho kaOfTHyqo8jiBExvcvQZYowHjt4KoDLON7vRmSEdUBSvdIwDaF3qjQRYV0EHaQmM CqQKO4BDXVOEtb4X7x1J4Y7Tu0JA4DSGdRm9wqXT+BqS3up4nnOUM5AkfE4HQjC7 XDmhAdbA3VCsg3/yxwsIg9o5Pz3uSrBf0nn9ib4mIM4mp5A+e2czF31rZGzs2hoT ji/u+gfilVs4pSb1JoWH97izCN3p2cIE4n7fntV5Mlf5lxHT1rD5ECAL+bLnyaeg 9LPIHO9LQqaWLxVu1HlkXz7YmCQd2RIgAtMBgRZ0+pS3mPQRsHY= =lDbe -----END PGP SIGNATURE----- --WoYbkTpfKyH2FMAS--