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.96) (envelope-from ) id 1vdvcf-006mFB-0u for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jan 2026 19:24:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdvcd-003zXk-0b for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jan 2026 19:24:39 +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.96) (envelope-from ) id 1vdvcc-003zXZ-2h for pgsql-hackers@lists.postgresql.org; Thu, 08 Jan 2026 19:24:39 +0000 Received: from dd48506.kasserver.com ([85.13.164.188]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vdvcb-004weY-1R for pgsql-hackers@lists.postgresql.org; Thu, 08 Jan 2026 19:24:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oopsware.de; s=kas202508291206; t=1767900273; bh=dko/4hfw8rJhs3PLSCAWrCjW3gMsy7YCJKmucrXxW2s=; h=Subject:From:To:Cc:Date:In-Reply-To:From; b=qeybPEoxYF4xyEKH7aru+8MMRR/wpdWc6Q+Cf2yT3+2l91b8L9n98aNpFPwhZ3nwb OHwsXx5Vrf7YNv1uCKv/wv5ljXPTA0vsFeZoJ6rPTwayYnvrGj2z4ZleaVMzlAb8of RAngpB+UAfsM+Fl7j/yVGYwvexSsk7nQI1Xjt0rz413NcotIgPf4kuLmkqSpKWra4Y tLmXg0DbQBe7gFAImphx9+ClpLbFvLZzeSgGUI/NUDmStR0JM5dhtSYb8OO1ibMxbw V7TQgArOBYuid8Zp98a4Fs10JhQ4w8T8A4gnrCK75VbdgG50GBrLqIiZyvOF5EyCtR NBJd1+5vVAM/g== Received: from chufu.bluecherstrasse.oopsware.lan (pd9e06569.dip0.t-ipconnect.de [217.224.101.105]) by dd48506.kasserver.com (Postfix) with ESMTPSA id 2415D86636A1; Thu, 8 Jan 2026 20:24:33 +0100 (CET) Message-ID: <844b43b7adca538fe22a0234f74d39f58fea5528.camel@oopsware.de> Subject: Re: [PATCH] Provide support for trailing commas From: Bernd Helmle To: David Rowley , Greg Sabino Mullane Cc: Tom Lane , "pgsql-hackers@lists.postgresql.org" Date: Thu, 08 Jan 2026 20:24:32 +0100 In-Reply-To: References: <1619826.1767732539@sss.pgh.pa.us> Autocrypt: addr=mailings@oopsware.de; prefer-encrypt=mutual; keydata=mQGiBEIM4dYRBACEnxQZ/CfR1xbCJzGOIjvh3fZpLALMm+tt237QlZm9nlLaEwCn317sT 1khPAJwhyBHSHbNFbH+LOL6ezYrg4V2Q9KHyYJDStJtC8c+D7vHVB5Jfslynx89DnCH6jb3H0j+U0 iNYmRmT18PWTZhD5RuXT+Toyz/0hH4YnJzha4VUwCggikXRuhIQ0KIzrps7/PsvasTPjUD/1aoEHR wVyk2C2hXh6GWJYq+1l+sB2d0TOnFJf2xy3Xo03Hi+BEJJdYGqJKqzd0KfsFyJYhO2GIGScSEj1hs TqAiY8OZeRqRGHe69OQEguUSVXp/jPaqU8fel8dbDDMnXkgULq8oO4T9e4GJSFqIvrlx0sJqSMFdi ihV+xCzDS40BACBrTq9tyXmyxJWzQ1/0Hx9S4sU+yeR8ztZH9xgWi1wksfHpEgZBdAkQynlI80/bC tgxfVu+LKgxeqGfMSnT9t8agpr1IGcmSbDntbn/K+3EmCze0jq8EQrZHJWiwCqraM8mnmILSEl5zn aoVoBIF062b60zZicuNeYaVgEKSHfirQgQmVybmQgSGVsbWxlIDxiZXJuZEBvb3Bzd2FyZS5kZT6I XgQTEQIAHgUCQhyP2gIbAwYLCQgHAwIDFQIDAxYCAQIeAQIXgAAKCRBRdc2OhdlKzMm4AJ9mW1np2 RXi66WzEvcIanaJkDT+xgCfZmXG/Sziz5FchI3OjXfXDZfwnNm0J0Jlcm5kIEhlbG1sZSA8YmVybm QuaGVsbWxlQG9vcHN3YXJlLmRlPoheBBMRAgAeBQJCDOHWAhsDBgsJCAcDAgMVAgMDFgIBAh4BAhe AAAoJEFF1zY6F2UrMWZgAn3MVwDBzRS5dZu1yjx7WU3E3JSheAJ41CUYMIkX/oYfWssUVYnOuedgn 8LQlQmVybmQgSGVsbWxlIDxiaEBzY2huYWVwcGNoZW5qYWdkLmRlPoheBBMRAgAeBQJCHI+pAhsDB gsJCAcDAgMVAgMDFgIBAh4BAheAAAoJEFF1zY6F2UrMYMUAn0rk8fEEY2tHGSUD7PNbk+Fwkd7MAJ 4wMfOerrvsKTrB9xmFnZ2ZUy67w7QjQmVybmQgSGVsbWxlIDxtYWlsaW5nc0Bvb3Bzd2FyZS5kZT6 IXgQTEQIAHgUCQhyPxgIbAwYLCQgHAwIDFQIDAxYCAQIeAQIXgAAKCRBRdc2OhdlKzOhrAJ4w+A3H cjTJb54lUDpyyQu6Y5dlVQCeJCFKygOVbpn4HSp4Z+R6+s4Rul60J0Jlcm5kIEhlbG1sZSA8YmVyb mQuaGVsbWxlQGN5YmVydGVjLmF0Poh4BBMRAgA4FiEEcLVWcrwQIdBqHtvMUXXNjoXZSswFAmDe1D kCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQUXXNjoXZSszs9QCfbbpKT0/Mh4PhfS6rRbm NNQC1zS8An2x1PLHPS6649DRkiYOMWTXzAlSE Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.2 (3.58.2-1.fc43) MIME-Version: 1.0 X-Spamd-Bar: / List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am Donnerstag, dem 08.01.2026 um 10:53 +1300 schrieb David Rowley: > Personally, I don't want this feature. I'd rather receive an error > message when I make silly mistakes in code that I write. If I have > code to dynamically build an SQL statement and I have a bug that > causes a variable that stores a column name to sometimes be an empty > string, with your patch, I'll get an error message in all cases > unless > the column's position is last. I want the error at all times, not > sometimes. This is exactly what i initially thought when reading through this thread. Yes, people have their arguments, but it also feels like a big hammer for a rather small issue, looking on what technical implications are discussed and might hit us. In other words, I never got a single complaint from people using PostgreSQL in the last two decades for not allowing trailing commas in our parser. And to be honest, i never thought about this before Greg's proposal ... --=20 Thanks, Bernd