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 1nHGqt-0005r7-MK for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Feb 2022 03:07:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nHGqs-0007ns-FU for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Feb 2022 03:07:34 +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 1nHGqs-0007nJ-2x for pgsql-hackers@lists.postgresql.org; Tue, 08 Feb 2022 03:07:34 +0000 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nHGqo-0000di-QI for pgsql-hackers@lists.postgresql.org; Tue, 08 Feb 2022 03:07:32 +0000 Received: by mail-qv1-xf32.google.com with SMTP id n6so4737539qvk.13 for ; Mon, 07 Feb 2022 19:07:30 -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=dskARNIsoYhwB/ooqkiCZL51byNpnv+z2WiUIdDlbLE=; b=W0kOnMQVGYV2zwpSYv4GvHP8c1vd7kXe9Km6wGHNjirJP2CJGl4EB+nGOnzcCUalsO eTCOK/tbctQW4xVdqCm9DxyONSTjbKD5BXS7DVgcIgaljJ1t39qTXma0vUSfpZ4yOFpr zjnzIR7A6UQH6gleGWl+5tXu+Tpgqs0dDkJQgO9eyxNDzt2MkmAK31OzGvzE4Qjg4h31 pGSPdRGD+iavbUiPI2TbDGqNlyIG+bjwsjCLK/1QM1khfwhY3ibG+iGkzz9MJEa4BIp/ LdYcVC5CPpdSpdg1wHAxh97OZUR9ovZ7+SSX1t63h8ItkPBeVyntxq6SFaJdXqFKuHe3 6ugw== 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=dskARNIsoYhwB/ooqkiCZL51byNpnv+z2WiUIdDlbLE=; b=JKUuaZauwiK2FEua8Dx7IqwVg7rnDlQiJIm9jGkw4pRtH4lNf4fuhpTqVeIB5ydXmy lHCIKslSjRN68USJDyiKJ/xmq8tVULLN9mmDNjGiRlQpoTVRNJ+74JdWPJi6FJvxKGaw SCbbHzWbM64DvHfC6P72i71cxbK/ac1Uyhkdg+tRJZGyXaJhRYz+8nmgxD7LQPb8DkIx UsUzrFgCw4HemGZnRFQujicg84jyWG/PlJ5XxysA8fwjcchao8c+Pnc2JXSFE5o7/Rf2 mnPwzSiECmVo3ImunjjJhYwpwsFg5Y85F1MXG2FIekd8AztsPYnsncDx+/4hQieD2fg5 aHlQ== X-Gm-Message-State: AOAM533usL+8RctGtJqfptLqENJ7x1eZoRof5MhYfFE/mDrTqPKVkO6G WdV6epDi8GCC025XLKquWcnJ4A== X-Google-Smtp-Source: ABdhPJw4qeaqnF1LNGyRLOFg4BJF+wpjqPaXGURO9Osr9oARhuYb6yOIVlXZYA4yu3KZTOCuBGC26g== X-Received: by 2002:ad4:5b8c:: with SMTP id 12mr1783064qvp.91.1644289649682; Mon, 07 Feb 2022 19:07:29 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id d11sm6711532qtd.63.2022.02.07.19.07.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Feb 2022 19:07:29 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 30666800785; Mon, 7 Feb 2022 21:07:28 -0600 (CST) Date: Mon, 7 Feb 2022 21:07:28 -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: <20220208030727.GH31460@telsasoft.com> References: <20220128043621.GA23027@telsasoft.com> <20220130001849.GR23027@telsasoft.com> <20220131225645.GZ23027@telsasoft.com> <20220207030414.GC31460@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 Tue, Feb 08, 2022 at 10:44:07AM +0900, Michael Paquier wrote: > What do you think about the updated version attached? I have applied > the addition of config_data() separately. Looks fine > + # Check if this line matches a GUC parameter. > + if ($line =~ m/^#?([_[:alpha:]]+) (= .*|[^ ]*$)/) I think this is the regex I wrote to handle either "name = value" or "name value", which was needed between f47ed79cc..4d7c3e344. See skip_equals. It's fine the way it is, but could also remove the 2nd half of the alternation (|), since GUCs shouldn't be added to sample.conf without '='. -- Justin