Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyKes-007gSg-BN for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Nov 2023 23:29:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qyKep-009Y81-P1 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Nov 2023 23:29:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyKep-009Y7t-Fd for pgsql-hackers@lists.postgresql.org; Wed, 01 Nov 2023 23:29:55 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyKem-004EZ1-Ue for pgsql-hackers@lists.postgresql.org; Wed, 01 Nov 2023 23:29:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3A1NTpcB2885776; Wed, 1 Nov 2023 19:29:51 -0400 From: Tom Lane To: Michael Paquier cc: "Anton A. Melnikov" , PostgreSQL Hackers Subject: Re: 003_check_guc.pl crashes if some extensions were loaded. In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Thu, 02 Nov 2023 07:53:18 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2885774.1698881391.1@sss.pgh.pa.us> Date: Wed, 01 Nov 2023 19:29:51 -0400 Message-ID: <2885775.1698881391@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > On Thu, Nov 02, 2023 at 12:28:05AM +0300, Anton A. Melnikov wrote: >> "SELECT name >> FROM pg_settings >> WHERE NOT 'NOT_IN_SAMPLE' = ANY (pg_settings_get_flags(name)) AND >> - name <> 'config_file' >> + name <> 'config_file' AND name NOT LIKE '%.%' >> ORDER BY 1"); > Wouldn't it be better to add a qual as of "category <> 'Customized > Options'"? +1, seems like a cleaner answer. > That's something arbitrarily assigned for all custom GUCs > and we are sure that none of them will exist in > postgresql.conf.sample. There's also no guarantee that out-of-core > custom GUCs will include a dot in their name (even if I know that > maintainers close to the community adopt this convention and are > rather careful about that). Actually we do force that, see valid_custom_variable_name(). But I think your idea is better. regards, tom lane