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 1sWcj5-00GI7v-Qr for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jul 2024 14:12:19 +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 1sWcj4-005DLd-7S for pgsql-hackers@arkaria.postgresql.org; Wed, 24 Jul 2024 14:12:18 +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.94.2) (envelope-from ) id 1sWcj3-005DLV-RA for pgsql-hackers@lists.postgresql.org; Wed, 24 Jul 2024 14:12:17 +0000 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sWcj1-001Eu7-FW for pgsql-hackers@postgresql.org; Wed, 24 Jul 2024 14:12:17 +0000 Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3d9dfc7c5f6so3047425b6e.0 for ; Wed, 24 Jul 2024 07:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721830333; x=1722435133; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=voE4fypLvYIkMmAfcpK1+Rd+Uv/8CDMvEnQkyOExueA=; b=fEzwrA23NVoOnmWegKZn28dH8Sb+X6bzgQn4lE54ZYOx9NfvXLwFhNKABBwvdMxZXW zejHpiyRNalALxUsFH1k3V8BQvUubq6p7grlZeRb/AjUxUCTK98NfMG+vdSvl8Z4uq3p xD+TE2wXFu3j1dBZGTY6r1Kf3xIpFAB/gBLWAhsycfKAsRKggSGhjKPWSDpSGmUO6rls N19YLQT2/2BdBu8+BAOvNfTkAaVO1xy4UZM9JZ1/wMkFVPY3zwUNrcBKh5sacqn9qUiI S422xY3Vh/qIBzom91alAdZsoz1ow7IMNZT7kt9Q8fYsCGCEEv8eGLdSNMOIVuOu/6eS etHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721830333; x=1722435133; h=content-transfer-encoding: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=voE4fypLvYIkMmAfcpK1+Rd+Uv/8CDMvEnQkyOExueA=; b=qvHYQvrtbG8hdfxDaHDermG4qo+5q52LlYvSf4CbFuPuPc3bgrWZUa3Gbz3RIa1beS Lt8R5hZrdreOAxS02gqKv22yZhxo9sUF0/mgwW7kM/9DXDj7+hhVOsKDPTga7yRK+ThF BPMfI372sAdZvHW/xpM7dABUbcFHToyKwWMFQyPtmDRlFJIMXLAA93JuYso5FvymcsBL 49vz84g/kKcuHcbGA+J3zIgPZU24Y5zz03ThG065OEBOMbL3gPt97HJl0Q0wmqZEmmsu RuDULbCoDe6pzqwuIsvrfEeaF5Me2NsHSoKKpjW3oTaGBnlTQRDd2jE3R21i5SsIpu+q ep1w== X-Forwarded-Encrypted: i=1; AJvYcCUNjXcko9at/usmvsdKAiULQN2KJdayk/wZYbAXSPMyJBgB/KGU3MwALV8hXRJLTD8bHxxPrlqqZrBd/++BJx5HXl8TFTyx9hzRgEvu X-Gm-Message-State: AOJu0YzqMpL/6h34SN+bMsAu4FoYs/aeG8vu4UqiQKs8INC4nZv2ECKV XFTQLhSVre+MZivviCXq9PJgU3GhWKE7I/mKAtsR/88ogwuhCZILb91+W5uWZmGvQeDUf+AnOu/ 3LTP1H1OGeQ3L+9/XojcUtEwZHvU= X-Google-Smtp-Source: AGHT+IHyEJgMEsniXXqkYj8dZPT0dyiugv3fsc+Ck0M+HJpOimYHRA+Bn5u4cOzgwDCQFOWLuYOyqOEr1+eVPv/ycE0= X-Received: by 2002:a05:6358:430c:b0:1aa:bc42:eb01 with SMTP id e5c5f4694b2df-1acefb355a0mr257721655d.7.1721830333237; Wed, 24 Jul 2024 07:12:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ashutosh Bapat Date: Wed, 24 Jul 2024 19:42:01 +0530 Message-ID: Subject: Re: [PATCH] GROUP BY ALL To: David Christensen Cc: "David G. Johnston" , pgsql-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jul 23, 2024 at 6:53=E2=80=AFPM David Christensen wrote: > > On Mon, Jul 22, 2024 at 4:34=E2=80=AFPM David G. Johnston > wrote: > > > > 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 fe= edback. > >> > > > > I strongly dislike adding this feature. I'd only consider supporting i= t if it was part of the SQL standard. > > > > Code is written once and read many times. This feature caters to the w= riter, not the reader. And furthermore usage of this is prone to be to the= writer's detriment as well. > > I'd say this feature (at least for me) caters to the investigator; > someone who is interactively looking at data hence why it would cater > to the writer. Consider acquainting yourself with a large table that > has a large number of annoying-named fields where you want to look at > how different data is correlated or broken-down. Something along the > lines of: To me this looks like a feature that a data exploration tool may implement instead of being part of the server. It would then provide more statistics about each correlation/column set etc. --=20 Best Wishes, Ashutosh Bapat