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.98.2) (envelope-from ) id 1x7ES9-00000000Di5-1ZKG for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Sep 2026 15:55:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x7ES7-00000005PXX-1Uz8 for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Sep 2026 15:55:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x7ES7-00000005PXO-0Gp7 for pgsql-hackers@lists.postgresql.org; Thu, 17 Sep 2026 15:55:11 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x7ES3-000000012kO-2cEy for pgsql-hackers@postgresql.org; Thu, 17 Sep 2026 15:55:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68HFt28i645016; Thu, 17 Sep 2026 11:55:02 -0400 From: Tom Lane To: Vik Fearing cc: Robert Haas , Jeevan Chalke , PostgreSQL Hackers , Isaac Morland Subject: Re: ON EMPTY clause for aggregate and window functions In-reply-to: References: <636820.1789651904@sss.pgh.pa.us> Comments: In-reply-to Vik Fearing message dated "Thu, 17 Sep 2026 17:47:17 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <645014.1789660502.1@sss.pgh.pa.us> Date: Thu, 17 Sep 2026 11:55:02 -0400 Message-ID: <645015.1789660502@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Vik Fearing writes: > On 17/09/2026 15:31, Tom Lane wrote: >> I'd be totally fine with rejecting this as a frammish we do >> not care to support. > I am not the most unbiased person, but I would like us to implement it. > If for nothing else, then for helping people convert from database > implementations that do have it. It's not zero cost. Robert already mentioned the development/maintenance effort involved, and it also bloats the Bison grammar rules, creating some incremental penalty on parsing speed. Admittedly these costs aren't large, but neither is the benefit of supporting it. regards, tom lane