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 1sW1XK-00Cpof-FT for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jul 2024 22:29:42 +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 1sW1XI-007a2r-LC for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jul 2024 22:29:41 +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 1sW1XI-007a2j-Bo for pgsql-hackers@lists.postgresql.org; Mon, 22 Jul 2024 22:29:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sW1XG-000w1x-9j for pgsql-hackers@postgresql.org; Mon, 22 Jul 2024 22:29:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 46MMTZkS931748; Mon, 22 Jul 2024 18:29:35 -0400 From: Tom Lane To: "David G. Johnston" cc: David Christensen , pgsql-hackers Subject: Re: [PATCH] GROUP BY ALL In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Mon, 22 Jul 2024 14:33:57 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <931746.1721687375.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 22 Jul 2024 18:29:35 -0400 Message-ID: <931747.1721687375@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Mon, Jul 22, 2024 at 1:55=E2=80=AFPM David Christensen wrote: >> I see that there'd been some chatter but not a lot of discussion about >> a GROUP BY ALL feature/functionality. There certainly is utility in >> such a construct IMHO. > I strongly dislike adding this feature. I'd only consider supporting it= if > it was part of the SQL standard. Yeah ... my recollection is that we already rejected this idea. If you want to re-litigate that, "throwing this out there" is not a sufficient argument. (Personally, I'd wonder exactly what ALL is quantified over: the whole output of the FROM clause, or only columns mentioned in the SELECT tlist, or what? And why that choice rather than another?) regards, tom lane