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 1v2wvN-009Cus-Sr for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Sep 2025 19:19:10 +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 1v2wvI-00FE2G-Lj for pgsql-hackers@arkaria.postgresql.org; Sun, 28 Sep 2025 19:19:05 +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 1v2wvI-00FDzo-7B for pgsql-hackers@lists.postgresql.org; Sun, 28 Sep 2025 19:19:05 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v2wvF-000NsB-2a for pgsql-hackers@postgresql.org; Sun, 28 Sep 2025 19:19:03 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-b3d5088259eso92454566b.1 for ; Sun, 28 Sep 2025 12:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgguru-net.20230601.gappssmtp.com; s=20230601; t=1759087139; x=1759691939; 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=fRn4ONLq4qAv41ufpT4FEHDyaOy7T5FOiKhhNvDysKU=; b=o6r4CzU/j8GY8xscc91tswIMNBGYD38DNAV2Mn4sZZ8NgJ+/4Nan/N821/mxmkn2ok aJNad/g5OH+We0mqWS8Dm6V6lAt6wgp4opepJFyu2Hor1B5HrPC2DFEtAqI5AwUZcz4u hJUCF39SKksPWShUFVQRCkeMWDNJ5s+1iO2wrnwLR4fprrrkfrLMLgcPb2Lz+H+EXdbM fviRUQlmARQkmO0VfzDpZpk8v6WaPbzGG40qggzB5WUw21TlyeXp45ib0noxOV9cQ49v CPIfmefxpxPKK7FNYYmWoXfGzBjg1WNdKk3cEN3LlYn0boso//ISE0JOitLWz+q5qY27 pdhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759087139; x=1759691939; 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=fRn4ONLq4qAv41ufpT4FEHDyaOy7T5FOiKhhNvDysKU=; b=B66/DTF19tb2c3ZsOMYhYbHk/pHusAS8Be0HFs+i/vZhxbLcxDtkOFJoQA51CGQudU qmFIgUIGW+tK4LD0F/Oq/eq9eEf1MnhY5UyQ/7kLDW7mpPw3mE/MeNhz8kqI7AXHCeEp GEAm3mIz+n1Hpp6c8c2sYdMCpgCbew+kTykda6aja3dnz+K8kd3KPW13JyL9c+17khLI GjdjRJKiHGhqAWCa4bPyXSM+16vq16DM6+zTPhBt+N5ok0McVBMvyhvEuaPVjo4SdUsu 0pwwPL8yYj9y4duAMZtfKUCoEha0MkJTXY5zfGK9o8sXTbWUne+VZoupfhgGtV9CgJt1 Ga1w== X-Forwarded-Encrypted: i=1; AJvYcCXArwzAxj+olT0xqEHEGdcApllWlNmQutPKhuKWaRImLQeZ6jXVDaIZcUo5VSbws06HnFOdwChHVcysx0aU@postgresql.org X-Gm-Message-State: AOJu0YxcZ3af4CUUio6VL5JGo0KESUC8GxUiy/TMB9+acWLWbcaZs/nr vf1IfItEGKK7bLGJPWFwQoUOuIVfU6OdiqpswDhekJg9Uc+tDviS20jZSXOTTsb1bNc3c3CCY4s Xub4lWiwLcxApLzVEdRETgKUimXlfpLcpTaWWxW2eiA== X-Gm-Gg: ASbGnctoA/qvYjab2lJtIhfcnPuBFbAN7agcP+hDUIA6SGx92q4jucEVVtHQWqhqDm6 0EkOFhO44R8dM+ZCQWyMZ1A9F38u6hSvOTRCtvlZgoNBr152GY9iOJ5bzQL8Dz6NPEgJQP+8rmB q7vePbegHio9nE8x3b6ReparyN2mKFTzIXWGVhzugXfGw0WGJ3BgE/POpvbwXVpNpLSvqRgVOvp 5QhF0CIr0lBEIvK2JJ2ipNawbhxMWmiZamaiGuxUv7gtANQ1YuzmDXbEGdm X-Google-Smtp-Source: AGHT+IFgOChRiwQrb3QEK/8cD0bzYQoKoy++R1ygJDDiOf8av8yGXn6ZwIIvauQhD/Mi0gKUMiEhfgDkpXqX6onjFRk= X-Received: by 2002:a17:907:c05:b0:b2d:830a:8c09 with SMTP id a640c23a62f3a-b34bc39bf09mr1431206766b.44.1759087139433; Sun, 28 Sep 2025 12:18:59 -0700 (PDT) MIME-Version: 1.0 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> <702762.1759011796@sss.pgh.pa.us> In-Reply-To: <702762.1759011796@sss.pgh.pa.us> From: David Christensen Date: Sun, 28 Sep 2025 14:18:48 -0500 X-Gm-Features: AS18NWDzPLVsQBhtWvEX6HRufUtOieRJ7-3AvRmtmBxM2xkrxrcpKVzEASK9kN0 Message-ID: Subject: Re: [PATCH] GROUP BY ALL To: Tom Lane Cc: Peter Eisentraut , Andrey Borodin , pgsql-hackers , "David G. Johnston" , Jelte Fennema-Nio 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 Sat, Sep 27, 2025 at 5:23=E2=80=AFPM Tom Lane wrote: > > Here's a v6 that's rebased up to HEAD and contains fixes for the > semantic issues we discussed. It still lacks documentation, but > otherwise I think it's about ready to go. Here is v7 with a stab at docs; fairly minimal at this point, but touching the two areas that are likely to need adjusting. When adjusting the docs for sql-select, I noticed that the grammar also supports `GROUP BY ALL `, so I also added a test to ensure that this syntax is explicitly supported. (It seems like it works as-is without further grammar adjustments, but I was a little worried when I first saw that fact... :D) Not sure that aggregates.sql is still the right place for all of these bits, but it does seem like having all things `GROUP BY ALL`-related tested in the same place is a nice property, so leaving there for now. David