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 1muEB2-0008GA-GZ for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Dec 2021 13:37:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1muEB1-0000ld-Ac for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Dec 2021 13:37:07 +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 1muEB0-0000lP-Up for pgsql-hackers@lists.postgresql.org; Mon, 06 Dec 2021 13:37:07 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1muEAu-0001TM-0B for pgsql-hackers@lists.postgresql.org; Mon, 06 Dec 2021 13:37:06 +0000 Received: by mail-oi1-x236.google.com with SMTP id o4so21437506oia.10 for ; Mon, 06 Dec 2021 05:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=umsFUXYGAeNVZZIqALwSOZC5FuBBZ668y8Z4cUD3lec=; b=vVdc/w5C6E/kESPDtk5Ce7zAezK8Q2EOB2MTaBfV0g0zZl2mGORZ3lNSforOIagXnF IyyZ9NZGiHwvTjPvWga/ZufJy6XW4Phchx0uq+H7kZMIXf3/+eyPmsTBBzokaFDLZATY hRAfQCHGGnh5ODFYkcFrmbM+nRAL01mnR1Pv8GxjW5VQ9yGaj3OuUyEqRHv135HIewjI /KVR0htMeXtbBdbqw985TyXjMEhUPxdITwQDLSKg5HxiAif//RmV7IZkTbLBJQ7Vs0pX bmfNd+FaIs5YYfCWBv1SEzTv51EtjDQDsG+gK7PT/R7AzEH9TvmTGLePRWwD7XxWhAMV q2pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=umsFUXYGAeNVZZIqALwSOZC5FuBBZ668y8Z4cUD3lec=; b=KaK2oR1fYLhKjqW5zSJ/qXXhCQ/32agJym5VGdZIJ9zSeA5tv6i6Aae85tj1p0cIcw AHDgTx5+/eHb7ijoExfNJQEtXB5Mr9oroxNQpCzG4ZDIeQPFHsqVKRDQ1aV3K1wh9/zO YX5SdWnxQ7gcuQ+9vQuatw6Rj5SKFOa+gxcW1ap2XQw33EPOqSCDz3BaebW904iBqlxs Y5rqQBjXAelH+otM67EW9PUHHxZ3BwPa2KGlsEjS+NJbbXNGhkPB+KFec0VP46iatb/e sIu+FD0zcPcazqgu7ZLPfUMTL0+UY23aJ3Fn1W2Gw/QMdpnWW/X61sdbtmcMir976k1n S3sg== X-Gm-Message-State: AOAM530xaCjLQlDCCwenJORbV8CEsfyX7yQGQI6wA3034f7HaVKVhSTZ o4lUodF6lAzWgjmZ3oEfrNSmTEaVYgbb1g== X-Google-Smtp-Source: ABdhPJxiODWxJc/H8gdAXjLb2B3oNFKtLGA+qDAXM9OoHkTZsh2qIqZq/OIURfmnd3/WX7LWQc/0dg== X-Received: by 2002:a05:6808:11c1:: with SMTP id p1mr24950715oiv.113.1638797817914; Mon, 06 Dec 2021 05:36:57 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id be12sm2781613oib.50.2021.12.06.05.36.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Dec 2021 05:36:57 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 14FC8800E92; Mon, 6 Dec 2021 07:36:56 -0600 (CST) Date: Mon, 6 Dec 2021 07:36:55 -0600 From: Justin Pryzby To: Michael Paquier Cc: pgsql-hackers@lists.postgresql.org Subject: Re: GUC flags Message-ID: <20211206133655.GH17618@telsasoft.com> References: <20211201075904.GW17618@telsasoft.com> <20211202033439.GL17618@telsasoft.com> <20211202051734.GN17618@telsasoft.com> <20211206053805.GG17618@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Dec 06, 2021 at 03:58:39PM +0900, Michael Paquier wrote: > On Sun, Dec 05, 2021 at 11:38:05PM -0600, Justin Pryzby wrote: > > Thanks. One more item. The check_guc script currently outputs 68 false > > positives - even though it includes a list of 20 exceptions. This is not > > useful. > > Indeed. Hmm. This script does a couple of things: > 1) Check the format of the options defined in the various lists of > guc.c, which is something people format well, and pgindent also does > a part of this job. > 2) Check that options in the hardcoded list of GUCs in > INTENTIONALLY_NOT_INCLUDED are not included in > postgresql.conf.sample > 3) Check that nothing considered as a parameter in > postgresql.conf.sample is listed in guc.c. > > Your patch removes 1) and 2), but keeps 3) to check for dead > parameter references in postgresql.conf.sample. The script checks that guc.c and sample config are consistent. I think your undertanding of INTENTIONALLY_NOT_INCLUDED is not right. That's a list of stuff it "avoids reporting" as an suspected error, not an additional list of stuff to checks. INTENTIONALLY_NOT_INCLUDED is a list of stuff like NOT_IN_SAMPLE, which is better done by parsing /NOT_IN_SAMPLE/. > Is check_guc actually run on a periodic basis by somebody? Based on > the amount of false positives that has accumulated over the years, and > what `git grep` can already do for 3), it seems to me that we have > more arguments in favor of just removing it entirely. I saw that Tom updated it within the last 12 months, which I took to mean that it was still being maintained. But I'm okay with removing it. -- Justin