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 1v2ZRw-005LXA-MJ for pgsql-hackers@arkaria.postgresql.org; Sat, 27 Sep 2025 18:15:12 +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 1v2ZRt-00BY7d-Vi for pgsql-hackers@arkaria.postgresql.org; Sat, 27 Sep 2025 18:15:10 +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 1v2ZRt-00BY7V-ES for pgsql-hackers@lists.postgresql.org; Sat, 27 Sep 2025 18:15:10 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v2ZRr-000E4h-0j for pgsql-hackers@postgresql.org; Sat, 27 Sep 2025 18:15:08 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id B65774436F; Sat, 27 Sep 2025 18:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postgresfriends.org; s=gm1; t=1758996905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YEdva9yeQd0u4WOTdHpU4s5YA/KeHvxe1F2AhNjevqo=; b=TvO82XmQI6ub8dMbZiTW/371Wu6Vxt+GG0h5mAy2jS1a9KJkNWrYKxJGs6BtD9fq0OQ7KO QNQSi8fGyVZMkz3sXblP+IPeSyR5RZZrdk7t0ZN/NZ0R1hfSbu26+xipyCymomKO7J7uuX eVsEQRLZyhXoM0JP+JaOrSOsGEsCh4utUN7QtYYVL/cI0Rf0mYfO7QS6KbOoJ0nWhDCkvD 5JOv5SKv/HxVTWyg8o8CpPsgduKeaXlAtRQAKirJXOgxf9E69yLoEDJig2vTCrpVAkvfgx 5LImf9vYbS3EpSdB1m/N9Vo0r2FgSpIyPDV+0w2TQu8VxyVKdoAXeEyZbp8DSg== Message-ID: <6db86e0b-697a-4e4b-860a-7ad9736a8e81@postgresfriends.org> Date: Sat, 27 Sep 2025 20:14:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] GROUP BY ALL To: Tom Lane , Peter Eisentraut Cc: David Christensen , Andrey Borodin , pgsql-hackers , "David G. Johnston" , Jelte Fennema-Nio References: <4D2047B0-E8D8-472B-B7E8-61206B1E6AFA@yandex-team.ru> <4083063.1758902694@sss.pgh.pa.us> <4085064.1758903815@sss.pgh.pa.us> <167505.1758988990@sss.pgh.pa.us> Content-Language: en-US From: Vik Fearing In-Reply-To: <167505.1758988990@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdejvdelgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeggihhkucfhvggrrhhinhhguceovhhikhesphhoshhtghhrvghsfhhrihgvnhgushdrohhrgheqnecuggftrfgrthhtvghrnhepuddtveefleegvddutdejhffhleehhfevheeilefhgeettdeuhfdtffegvdfgteffnecukfhppeejledrudehuddruddtfedrudekkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeejledrudehuddruddtfedrudekkedphhgvlhhopegludelvddrudeikedruddrfeelngdpmhgrihhlfhhrohhmpehvihhksehpohhsthhgrhgvshhfrhhivghnughsrdhorhhgpdhnsggprhgtphhtthhopeejpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhushdprhgtphhtthhopehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdprhgtphhtthhopegurghvihgusehpghhguhhruhdrnhgvthdprhgtphhtthhopeiggehmmhhmseihrghnuggvgidqthgvrghmrdhruhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopegur ghvihgurdhgrdhjohhhnhhsthhonhesghhmrghilhdrtghomhdprhgtphhtthhopehpohhsthhgrhgvshesjhgvlhhtvghfrdhnlh X-GND-Sasl: vik@postgresfriends.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 27/09/2025 18:03, Tom Lane wrote: > So according to the standard, this: > > select a+b, count(*) from ... group by all; > > would be invalid because a+b couldn't be written directly in > GROUP BY? Correct. > I can't see us rejecting that though, since we do > allow a+b in GROUP BY. No, nor do I.  Also, there were rumors about adding expressions to group by in the standard but no formal proposal yet. FWIW, I opposed adding this GROUP BY ALL feature, but I was outnumbered.  I hope to never see it in production. -- Vik Fearing