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 1qyI7C-007Pi3-71 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Nov 2023 20:47:02 +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 1qyI7A-008soy-Dt for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Nov 2023 20:47:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyI7A-008sod-4M for pgsql-hackers@lists.postgresql.org; Wed, 01 Nov 2023 20:47:00 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qyI75-003V3G-ED for pgsql-hackers@lists.postgresql.org; Wed, 01 Nov 2023 20:46:58 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40891d38e3fso1611355e9.1 for ; Wed, 01 Nov 2023 13:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1698871614; x=1699476414; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=1Ezu+TTcMC1NwmWLNdtvqIXtvcr1wEaKJkLMSOGfvaQ=; b=rpLzgP2A4sscuSTFtT4k1NDyaRPpL4Fv3D0jQUCGSTBJhldO5bFcPKOGftRi0DVCI4 kPp1aXHQwySSJrlZJ/Y8Hf8EBPJ0q2K+A4790cF69tOP6QPkV0QKX47Th2XTCQacftQw HVdCVpIrjrPzhZrEB1IiuU3KRUiiQKLt1Vxsj+leXincCaX5HnE7mCP1VXi+HOysdO8l WNW8Cfs+QR1hRIwQnQCbwKuiE6ibSNItRg584Q+3MgTIzKKtdz0c29ISpC6bcrizLvAG NJa+L+Qnmx3+XDMAYvB9pkiM4t4XrCUhv+gSOhcDcYM8Oi34ccq4LHbdCBVi/3410jaQ odeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698871614; x=1699476414; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1Ezu+TTcMC1NwmWLNdtvqIXtvcr1wEaKJkLMSOGfvaQ=; b=UIpVmY4T2q0e79BunmfktVmo5hz132OK28FvCdMGrp0mxs0B6QgPrCt19bL0s8qojP cJNJmkRDfeLbh3BnwshcCsXV9+Jn0KTG0hqlSOf0pTKb5pHP0Ykf1FbnaXJGi71qUjat u5wNvyWRuD1ArJSWmH/sEHDzXrkceyyCqFqwF3fWhfFpCF20ItJDCqTfvLGua9I8Bx2v J5fA3RiLq1yvWInsrvjwKNPw3sH5pp9PeEx4LfftmSybfekBmyD86ARGkHP8XkaisnsN DgJnwU/zAW3CrfR0nJ7rCLKzL1iGaGlwDRNbKTq7vQklh7TdZ0cM4BdprN4zNXDpeCs7 N85A== X-Gm-Message-State: AOJu0YzLXcYLhxvEFL9hTYTk6BPrILMFceMmX7ncbHoyuOdHFBd3VEUJ KoJZ8VDKQCJKs0CirH4Gn+Y8qOwfqm7abpjOqN8= X-Google-Smtp-Source: AGHT+IHiDHReOxeU2TTUPJONA45OxbSHylmR2Ra5WRWyXtATn5ztQZRMBFbWFt7w1aW3Qj/OSicNqw== X-Received: by 2002:a05:600c:3148:b0:401:bdd7:499d with SMTP id h8-20020a05600c314800b00401bdd7499dmr14552696wmo.25.1698871613787; Wed, 01 Nov 2023 13:46:53 -0700 (PDT) Received: from localhost.localdomain ([2001:871:260:b539:1410:61d3:4510:7322]) by smtp.gmail.com with ESMTPSA id z10-20020a05600c0a0a00b00405c7591b09sm676171wmp.35.2023.11.01.13.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 13:46:53 -0700 (PDT) Message-ID: <4b83f9888428925e3049e24b60a73f4b94dc2368.camel@cybertec.at> Subject: Re: GUC names in messages From: Laurenz Albe To: Peter Eisentraut , Tom Lane , Daniel Gustafsson Cc: Peter Smith , PostgreSQL Hackers Date: Wed, 01 Nov 2023 21:46:52 +0100 In-Reply-To: <22998fc0-93c2-48d2-b0f9-361cd5764695@eisentraut.org> References: <2CCB9293-BB93-44DC-8B6E-4C1D163C625B@yesql.se> <2758485.1698848717@sss.pgh.pa.us> <22998fc0-93c2-48d2-b0f9-361cd5764695@eisentraut.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2023-11-01 at 16:12 -0400, Peter Eisentraut wrote: > On 01.11.23 10:25, Tom Lane wrote: > > And there's never been any > > real clarity about whether to quote GUC names, though certainly we're > > more likely to quote anything injected with %s. So that's why we have > > a mishmash right now. >=20 > I'm leaning toward not quoting GUC names. The quoting is needed in=20 > places where the value can be arbitrary, to avoid potential confusion.= =20 > But the GUC names are well-known, and we wouldn't add confusing GUC=20 > names like "table" or "not found" in the future. I agree for names with underscores in them. But I think that quoting is necessary for names like "timezone" or "datestyle" that might be mistaken for normal words. My personal preference is to always quote GUC names, but I think it is OK not to quote GOCs whose name are clearly not natural language words. Yours, Laurenz Albe