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 1w69js-0040hO-1l for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 16:08:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w69jr-00Acwr-0K for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 16:08:47 +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 1w69jp-00Acwg-2z for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 16:08:46 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w69jo-00000001LN6-1ayI for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 16:08:45 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id 31E381D0015C; Fri, 27 Mar 2026 12:08:43 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Fri, 27 Mar 2026 12:08:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1774627722; x=1774714122; bh=DvC1FfSn3/nnRBdz81BLHbYIqC4LJtKl w+dO3O3hrhM=; b=M+anGLHG7FHDrFqHx+r7uYc0kGdZHfh1RcU+1x17QIq14AGi Rq+2uKNH9pr6tyfSSSJhiPTqQjUp79RPQfcRcTJDZd25I22bhGaUmSDYDRojgeK1 0Kp/uoAPzty7xObiW474PrezOuYoaali2TV8+oZ97IsF49YJ213HKn9/6ByfQUtN IiPTzrhqXecWeXWuqLV7m4gEJ3Rq18xjgKbN0dTsuQpTMmNP8pTjcLTTSGI3FDu4 tbt+jlC+v9BVkOH8y9PaCno09L7dOsUJjoXsrIFMHPM+OjmpXlha26kCHbP1+aJS jt2TQMJkLmjqfMP8QatUXZQiMlyUc36qcDc5bA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1774627722; x= 1774714122; bh=DvC1FfSn3/nnRBdz81BLHbYIqC4LJtKlw+dO3O3hrhM=; b=Q KgkXFR8X5ajd7adz7OSbJrKvup/kI4COe5xGyMUee67DZ8JYPtK1IiORiWLblc5e Q4sQ+RuB9DHqFxeBzI0Rfu+LHoNc/DyldLhetlVXJN3vaMI5FB4civ6s8lQ8+KWN xOZbATejuimZwo2Z7W8T54EvmYLPbhHxIK/u3dqEZEj5wK/iaEVtx+nPtGTl4hsz rN95cjiDH01JZ/SI75TyyZKrA76Qr0QJ4WvgrEmVG67ZIKPF0xxaQthKk//QMtDD crQ6K3E/fRkc5G8ZBjGMST/ey8oS+PI0uhP8SQ8htsbkAVVrwmHTjsFh4rEREjgx eWtc1mE2nf8kSlQwXnmhQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdeffedtjedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejre dttddvjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhes vghishgvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpefgjedthfekfedtue fgieelheetleejgefhueeltdfhueetvdffudekfeejhfegheenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrg huthdrohhrghdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohephhhtrghmfhhiughssehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlh dqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthht ohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Mar 2026 12:08:41 -0400 (EDT) Message-ID: Date: Fri, 27 Mar 2026 17:08:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Provide support for trailing commas To: Greg Sabino Mullane Cc: "pgsql-hackers@lists.postgresql.org" , Tom Lane References: <4042a046-3dc9-4fc6-bfc6-62beb8492f27@eisentraut.org> <2228785.1769016115@sss.pgh.pa.us> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 23.03.26 23:54, Greg Sabino Mullane wrote: > Alright, I walked through the entire list of every place the original > patch added a comma, and ruthlessly trimmed out the ones that were not > really needed, likely to cause issues, and/or frankly applied on too > trivial a piece of SQL to worry about. Here's my list that people can > poke at. Once we settle on which ones survive, I can make a new patch. > The focus is mostly on the largest potential uses: lists of select > items / column names. I wrote: > I think there is consensus for allowing a trailing comma in the SELECT > list. This would be the target_list production in gram.y. I think that's the only one there is consensus about. (But target_list is also used in RETURNING, so maybe the productions would need to be split up.)