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 1lUA1x-0005iz-AK for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Apr 2021 15:23:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUA1u-0000ZG-OI for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Apr 2021 15:23:42 +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 1lUA1u-0000Z9-Hz for pgsql-hackers@lists.postgresql.org; Wed, 07 Apr 2021 15:23:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUA1r-0002tW-UI for pgsql-hackers@lists.postgresql.org; Wed, 07 Apr 2021 15:23:42 +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 137FNY1O1593066; Wed, 7 Apr 2021 11:23:34 -0400 From: Tom Lane To: Andrew Dunstan cc: Noah Misch , pgsql-hackers@lists.postgresql.org Subject: Re: Tightening up allowed custom GUC names In-reply-to: <3053249.1615834191@sss.pgh.pa.us> References: <951335.1612910077@sss.pgh.pa.us> <20210209230155.GA551305@rfd.leadboat.com> <1477413.1613068373@sss.pgh.pa.us> <3053249.1615834191@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 15 Mar 2021 14:49:51 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1593064.1617809014.1@sss.pgh.pa.us> Date: Wed, 07 Apr 2021 11:23:34 -0400 Message-ID: <1593065.1617809014@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > We can't allow '-', for the specific reason that it won't work as a -c > argument (thanks to -c's translation of '-' to '_'). The whole point here > is to prevent corner cases like that. ':' would be all right, but I think > it's a lot simpler to explain and a lot harder to break in future if we > just say that the names have to be valid identifiers. Hearing no further comments, I pushed the more restrictive version. regards, tom lane