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 1vsGTE-00DeaM-38 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Feb 2026 08:30:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vsGTD-009F7M-1Y for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Feb 2026 08:30:11 +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 1vsGTC-009F7B-1L for pgsql-hackers@lists.postgresql.org; Tue, 17 Feb 2026 08:30:11 +0000 Received: from flow-b6-smtp.messagingengine.com ([202.12.124.141]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vsGT9-000000011n2-0SMr for pgsql-hackers@lists.postgresql.org; Tue, 17 Feb 2026 08:30:09 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailflow.stl.internal (Postfix) with ESMTP id 672B41300B70; Tue, 17 Feb 2026 03:30:06 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Tue, 17 Feb 2026 03:30:06 -0500 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=fm2; t=1771317006; x=1771324206; bh=GlJnoA9w8fKk2SRsTj0YRyIZRTjXmkVp 781SgTBseF0=; b=s+nCwhQOQekGCV/F8EGyHQxIRu5DkF6uzrKF7mO+sGmXDzsJ VU0mvcIjqGhOc+3pBqfq6Mp5ZXpWkqHgJ5x3zk4DNucMD5bjRG7ndzbKW1ajwi0o KDRQmCCH1M8BeYTU6wSj6YVzbaV+j9OCF6iIL8Xndtj66q6wXiW7kLg1Bjj5Vt73 kJhQaayHNxAs4LxBkONz6Sv9T8A0gVTGFWtVVhkLDlW1S1lZWMmdeqbl2FiIKFd7 GkMYpIpYdIH+NQuFJMHXL5N8qCnR78JAQF9fEkX/C3dOlyeeqGTTARkNUXZOVQjh OQJKxQqdyEqEKgtUscfuZshVOUl5O+irSWwAXA== 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=fm3; t=1771317006; x= 1771324206; bh=GlJnoA9w8fKk2SRsTj0YRyIZRTjXmkVp781SgTBseF0=; b=h Za5yxqikQO0R1FpdkkX8ldWgQWN21T/QrZ8Un50kh3lQi9Y+GsW4hc9t7gmQvVW3 Jtr84dcCTMrA4QEZpi7IxJ8xqrIUvUCdPXFyF68VaFsUO5D03ei9EOZfg19SD0pi JxrU0DiNGOTwOoysWDrfwGESzvudBXCgrn+J8Xx9W2RdOGl+9Amxuru0Bg7RlQpA uHzaPqzakx7fAtVT8HaSJTEnqtKID+ysTvA+DHOd8XaBNeXskmuc3G3l7TRvEkxU p9IQN+5EP29zBSmERoXlITEQuQVJ5lWyCvDrTFmLBeMvhxPPSaDYinYW8GNqb9eP fcajIZuCGcZ1teictHZag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvudelvdekucetufdoteggodetrf 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; Tue, 17 Feb 2026 03:30:04 -0500 (EST) Message-ID: Date: Tue, 17 Feb 2026 09:30:02 +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 03.02.26 18:28, Greg Sabino Mullane wrote: > Having reread this thread, I'm not sure where we are at the moment. I'm > happy to support a subset of things for the first run, and I think that > will cover 99% of the use cases that people tend to complain about. So a > small hit for consistency, but an added bonus of a little protection > should the committee do something crazy. I think there is consensus for allowing a trailing comma in the SELECT list. This would be the target_list production in gram.y. Looking into your patch, it looks pretty much like how I would have implemented it, so if you could cut down your patch to just this production, and add a small amount of documentation and tests, then I think we could move forward with it.