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 1rFbmz-00AujX-9B for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Dec 2023 15:13:45 +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 1rFbmy-0021lY-0D for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Dec 2023 15:13:44 +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 1rFbmx-0021kr-Li for pgsql-hackers@lists.postgresql.org; Tue, 19 Dec 2023 15:13:43 +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 1rFbmv-00CoVL-Bs for pgsql-hackers@postgresql.org; Tue, 19 Dec 2023 15:13:43 +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 3BJFDd0D035889; Tue, 19 Dec 2023 10:13:39 -0500 From: Tom Lane To: Alexander Kukushkin cc: PostgreSQL-development Subject: Re: Allow custom parameters with more than one dot in config files. In-reply-to: References: Comments: In-reply-to Alexander Kukushkin message dated "Tue, 19 Dec 2023 13:25:08 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <35887.1702998819.1@sss.pgh.pa.us> Date: Tue, 19 Dec 2023 10:13:39 -0500 Message-ID: <35888.1702998819@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Kukushkin writes: > At the moment the only requirement for custom parameter names is that they > should have one or more dots. > ... > But, Postgres fails to start if such parameters are set in the > configuration file with the following error: Hmm. > In my opinion it would be fair to make parsing of config files with the > rest of the code responsible for GUC handling by allowing custom parameters > containing more than one dot. I wonder if we wouldn't be better advised to require exactly one dot. This isn't a feature that we really encourage users to use, and the further we move the goalposts for it, the harder it will be to replace it. In particular I doubt the long-stalled session-variables patch could support such names, since it needs the names to conform to normal SQL rules. regards, tom lane