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 1sW0g6-00ClQG-5k for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jul 2024 21:34: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 1sW0g3-0079Eq-Iv for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jul 2024 21:34:40 +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 1sW0g2-0079Ei-UP for pgsql-hackers@lists.postgresql.org; Mon, 22 Jul 2024 21:34:39 +0000 Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sW0g0-000vWy-I8 for pgsql-hackers@postgresql.org; Mon, 22 Jul 2024 21:34:37 +0000 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-260e5b2dfb5so2746869fac.3 for ; Mon, 22 Jul 2024 14:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721684076; x=1722288876; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zHWgm8IrfqYsdPRzeZXn8ZVI0Co4fthlFfPqv9r4AnM=; b=B6gYQeKT+QIt1Mt4DV7aksBRCIWhPoHH7iCvNIJTOCfPCnz/WkE8xLW9mopaAGhsZp Qx+Gu+CQpfZOaawsxfZU4Hd2yOXQVPqN1euKJwVWq7ujVEScLbD3HpvJH28rK0s/jzdi gcud50/o/SLB+Gf7llcMIQ42nTCvgH574af74F6OhbM7VRdhK8GceuiyezrHDnV6gMAH YsFQbO+fg8VmxYR38mFBkDFvu/zDuWWchlLmKl7FHzTKy/fZgZ9tCT8VRZwKmoTnOtc0 qVtREvBBQ66Sqy50eWWtc67GTfOAoHNzbAqxC2O6DwM12CvGdCusBMl2L9WG/UTJRtyK dXFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721684076; x=1722288876; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zHWgm8IrfqYsdPRzeZXn8ZVI0Co4fthlFfPqv9r4AnM=; b=xHNvmFe4p/UD69BYpmvKAUTclEgrJuvDuOt//wESIbhEnpO8dF+k/heRtrABFs/pef lICTiOQUqgscAadWxJQjVVq0d16gfmJQTKMaYCWtADl+zpn9s+YzRU8rwWJ85LCPAhBQ 93MTTKSW9ZyCJEW6hVGAsQ3eTStjyWoXbxcA0tDCfcyctzt+neW3lBQeQi24uZU+72F8 Ipnk/Dl6pjvQiMFJLGIvhQurD57ZGz9Sautn8zFr2SyAiZrE0w4rH2y+SlYqaA7RHpMH M2OKjos6T+76B/4XGxAU+6vDnljGfYJkYQZBAp77bu1Zi/Vef68ltsdnZv07hh5GxM+t jS1A== X-Gm-Message-State: AOJu0YwukJMsl88zaXR0VbScrL7UGpmw0E9KmnMSqA38t/lWLh/Qyg7k 3TROG62m0nsuwHOU0NUTd8Scp65bZ0dUYIdhaSResdVrBhfibQL1cj73s/GA9JrCT/Fpiloe662 WrKwfAkOL7tMQdKVqoVd37ESSdBv8E8WK X-Google-Smtp-Source: AGHT+IE9l1/qxtJyJ+bWilLV/5S5rUZQqEKsWRju6cxzjL6r8n3PLgi/0SHp57QTmS2imXNrHFm8sFcd9PJY5zmNSU4= X-Received: by 2002:a05:6870:e0cd:b0:261:26be:2606 with SMTP id 586e51a60fabf-264691891f1mr903191fac.25.1721684075673; Mon, 22 Jul 2024 14:34:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "David G. Johnston" Date: Mon, 22 Jul 2024 14:33:57 -0700 Message-ID: Subject: Re: [PATCH] GROUP BY ALL To: David Christensen Cc: pgsql-hackers Content-Type: multipart/alternative; boundary="000000000000bf03cc061ddccfb5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000bf03cc061ddccfb5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. > > Still need some docs; just throwing this out there and getting some > feedback. > > I strongly dislike adding this feature. I'd only consider supporting it if it was part of the SQL standard. Code is written once and read many times. This feature caters to the writer, not the reader. And furthermore usage of this is prone to be to the writer's detriment as well. David J. --000000000000bf03cc061ddccfb5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jul 22, 2024 at 1:55=E2=80=AFPM David Christensen = <david@pgguru.net> wrote:
I see that there'd been some chatter but not a lot= of discussion about
a GROUP BY ALL feature/functionality.=C2=A0 There certainly is utility in such a construct IMHO.

Still need some docs; just throwing this out there and getting some feedbac= k.


I strongly dislike adding this fea= ture.=C2=A0 I'd only consider supporting it if it was part of the SQL s= tandard.

Code is written once and read many=C2=A0times= .=C2=A0 This feature caters to the=C2=A0writer, not the=C2=A0reader.=C2=A0 = And furthermore usage of this is prone to be to the writer's detriment = as well.

David J.

--000000000000bf03cc061ddccfb5--