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 1nGuKI-00017k-81 for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Feb 2022 03:04:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nGuKG-0007od-MH for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Feb 2022 03:04:24 +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 1nGuKG-0007oU-Aa for pgsql-hackers@lists.postgresql.org; Mon, 07 Feb 2022 03:04:24 +0000 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nGuKA-0000eQ-7O for pgsql-hackers@lists.postgresql.org; Mon, 07 Feb 2022 03:04:23 +0000 Received: by mail-qv1-xf2f.google.com with SMTP id n6so2093506qvk.13 for ; Sun, 06 Feb 2022 19:04:17 -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=F094jHp2DkUSIj33NACUiw3to0eXvulp/oDAOUXbado=; b=FIxcabeu4bgsK51l8zn2S380enYJY1V/jb60WBLwKaXTVQm2Njh6eTVt0HXIJ/H73f g99gISBlO/+CNEKDCYcezPeli50WL0MOtFbMaQ3l4xESeoCxoydwOTjooutc9Pv0CWzc sgGTBghaFcez8Cmrt7NCrc9j37r8SY78nHOXilBh5gjBKboOk9NYtooT58cgg+IM8l11 6GLNneGkbro2EiUc4HMkxzmpIpMdj88D3+pdMSkFfcB2w3P7laJLf5B06HioIbGnD/jv F2KIAyT1iuObUFnTggMrx+6vctbu4W64dh5wwhgXUQqrwX8PEbPhM5hxgrnx2pfhD2ip z31Q== 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=F094jHp2DkUSIj33NACUiw3to0eXvulp/oDAOUXbado=; b=Jb2c0rIdpYBz8JJZeZL3/Vasio0Q/ufdQ2glpwaeGY7t8RkBecTOlkgOAFpGbsGqJN F0f8iZfk9px/mWJx2fl0tfgvfCjOyYNsrm8ZYziK0WDDA9bBGEd/eFUqgyGUVCaljJNg 2ASl1nHsYHvELgkRtlSxtGtMnVFgNi8VpICG+OWWtmTel8iH55qBshzrOEtcX44lydRH /YgkQ5tUYpXDj8wz0+6rj7Ld9igwt0z/9+DEcgXfTbiXLTTSPvCOznXxUKWJrTo86PUR rFzZWE2nXGvIs8CMDVL7VA+HZvT7xk1WmBFBPnXNeHiyg3AVHTSm0G1YijuJpNIUwoIy L0Mg== X-Gm-Message-State: AOAM533wgCj/spreCcWkLzj6wICzrJwasN5dVNSqynzcyVw3AUB8bCmy 0SBAy8QjPzK4fbs2jKUv/B1f9g== X-Google-Smtp-Source: ABdhPJxNCodbj9++tSdFeVkgxpZtTKodfhx69C4evCUCchoPHxaS8gi3kxdg8359QG0HG09YLfj2Sg== X-Received: by 2002:a05:6214:29e5:: with SMTP id jv5mr9168065qvb.41.1644203056309; Sun, 06 Feb 2022 19:04:16 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id r2sm5179253qta.15.2022.02.06.19.04.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Feb 2022 19:04:15 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id C5E678007D0; Sun, 6 Feb 2022 21:04:14 -0600 (CST) Date: Sun, 6 Feb 2022 21:04:14 -0600 From: Justin Pryzby To: Michael Paquier Cc: Peter Eisentraut , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org, bruce@momjian.us, tgl@sss.pgh.pa.us Subject: Re: GUC flags Message-ID: <20220207030414.GC31460@telsasoft.com> References: <20220126034426.GN23027@telsasoft.com> <20220128043621.GA23027@telsasoft.com> <20220130001849.GR23027@telsasoft.com> <20220131225645.GZ23027@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 Thanks for working on it. Your test is checking that stuff in sample.conf is actually a GUC and not marked NOT_IN_SAMPLE. But those are both unlikely mistakes to make. The important/interesting test is the opposite: that all GUCs are present in the sample file. It's a lot easier for someone to forget to add a GUC to sample.conf than it is for someone to accidentally add something that isn't a GUC. I'd first parse the GUC-like lines in the file, making a list of gucs_in_file and then compare the two lists. -- Justin