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 1lAGly-0005dm-3X for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Feb 2021 18:33:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lAGlx-0006wv-0R for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Feb 2021 18:33:01 +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 1lAGlw-0006wo-Pv for pgsql-hackers@lists.postgresql.org; Thu, 11 Feb 2021 18:33:00 +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 1lAGlu-0004d3-Qa for pgsql-hackers@lists.postgresql.org; Thu, 11 Feb 2021 18:33:00 +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 11BIWrIv1477414; Thu, 11 Feb 2021 13:32:54 -0500 From: Tom Lane To: Noah Misch cc: pgsql-hackers@lists.postgresql.org Subject: Re: Tightening up allowed custom GUC names In-reply-to: <20210209230155.GA551305@rfd.leadboat.com> References: <951335.1612910077@sss.pgh.pa.us> <20210209230155.GA551305@rfd.leadboat.com> Comments: In-reply-to Noah Misch message dated "Tue, 09 Feb 2021 15:01:55 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1477412.1613068373.1@sss.pgh.pa.us> Date: Thu, 11 Feb 2021 13:32:53 -0500 Message-ID: <1477413.1613068373@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Noah Misch writes: > On Tue, Feb 09, 2021 at 05:34:37PM -0500, Tom Lane wrote: >> * A case could be made for tightening things up a lot more, and not >> allowing anything that doesn't look like an identifier. I'm not >> pushing for that, as it seems more likely to break existing >> applications than the narrow restriction proposed here. But I could >> live with it if people prefer that way. > I'd prefer that. Characters like backslash, space, and double quote have > significant potential to reveal bugs, while having negligible application > beyond revealing bugs. Any other opinions here? I'm hesitant to make such a change on the basis of just one vote. regards, tom lane