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 1l9Uer-0006Wa-L0 for pgsql-general@arkaria.postgresql.org; Tue, 09 Feb 2021 15:10:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l9Uep-0001DP-Ez for pgsql-general@arkaria.postgresql.org; Tue, 09 Feb 2021 15:10:27 +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 1l9Uep-0001DF-7O for pgsql-general@lists.postgresql.org; Tue, 09 Feb 2021 15:10:27 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l9Uen-0008Vt-Ej for pgsql-general@lists.postgresql.org; Tue, 09 Feb 2021 15:10:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Fysuo4l9CmH6Nnn7J/u4KcWOVBfqFDNtgGIvrVpgG1M=; b=nq/FqfGJJNra+/WS41uV4mZXJD VPjEmrBHELDfuUzTXMmkF4e2I605Heq1O9KZI4gwoP45jJsmt+NbMGnsX8bj0Ik3zGrDXnro3EoLe 8QTRY/NEQfNnAzqwFTDPIFb75XFQ+C0Q2cmqO31KgEPcI67VXFdji3I6uYyvwANtDfKg=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1l9Uem-0003jS-O7; Tue, 09 Feb 2021 16:10:24 +0100 Date: Tue, 9 Feb 2021 16:10:24 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Edward Macnaghten Cc: pgsql-general@lists.postgresql.org Subject: Re: How to I select value of GUC that has - in its name? Message-ID: <20210209151024.GA12685@depesz.com> Reply-To: depesz@depesz.com References: <20210209144059.GA21360@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Feb 09, 2021 at 02:49:19PM +0000, Edward Macnaghten wrote: > > $ alter user depesz set custom.bad-guc = '1a'; > > ERROR: syntax error at or near "-" > > LINE 1: alter user depesz set custom.bad-guc = '1a'; > Have you tried enclosing "bad-guc" in double quotes? I'm sorry, but have you read my mail? I did. On set and on reading. Best regards, depesz