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 1qtisA-00DeaY-0q for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Oct 2023 06:20:38 +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 1qtis6-00DvEY-4x for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Oct 2023 06:20:34 +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 1qtis5-00DvDw-Sd for pgsql-bugs@lists.postgresql.org; Fri, 20 Oct 2023 06:20:34 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtis2-001fhv-Ft for pgsql-bugs@lists.postgresql.org; Fri, 20 Oct 2023 06:20:33 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 23B6440003; Fri, 20 Oct 2023 06:20:27 +0000 (UTC) Message-ID: Date: Fri, 20 Oct 2023 08:20:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: group by true now errors with non-integer constant in GROUP BY Content-Language: en-US From: Vik Fearing To: Laurenz Albe , Dennis Brouwer , Tom Lane Cc: John Naylor , David Micallef , Peter Eisentraut , pgsql-bugs@lists.postgresql.org References: <837886.1693252560@sss.pgh.pa.us> <3af446dd6fbfdb6e08de95fc24e06081f78a6f15.camel@cybertec.at> <18ba0d29-0637-48c5-a11d-19f8672a8b0f@postgresfriends.org> In-Reply-To: <18ba0d29-0637-48c5-a11d-19f8672a8b0f@postgresfriends.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: vik@postgresfriends.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/20/23 07:44, Vik Fearing wrote: > I may have oversimplified this example, but as long as the value is > present in the SELECT, logic would dictate that we can group by it. Oops, I have this backwards: the projection comes after the grouping. -- Vik Fearing