Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lN22T-00089J-D8 for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Mar 2021 23:26:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lN22S-0005PE-9S for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Mar 2021 23:26:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lN22S-0005P7-2d for pgsql-hackers@lists.postgresql.org; Thu, 18 Mar 2021 23:26:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lN22Q-00045Q-6n for pgsql-hackers@lists.postgresql.org; Thu, 18 Mar 2021 23:26:47 +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 12INQh1G3858397; Thu, 18 Mar 2021 19:26:44 -0400 From: Tom Lane To: Tomas Vondra cc: Thomas Munro , Vik Fearing , Georgios Kokolatos , PostgreSQL Hackers , Erik Rijkers Subject: Re: GROUP BY DISTINCT In-reply-to: <3828009.1616109022@sss.pgh.pa.us> References: <161469758801.29967.4455067072614569957.pgcf@coridan.postgresql.org> <4294e82f-a134-5dbb-d9d6-03d72dce2e1e@postgresfriends.org> <3817d5ec-f3e4-e4b9-d169-271ae5d3cbe4@postgresfriends.org> <8c44df08-bb64-3d78-da1a-d24b7c9db39d@enterprisedb.com> <7137947a-87be-d04a-bf91-f42e47520daa@enterprisedb.com> <35077b31-2d62-1e31-0e2e-ddb52d590b73@enterprisedb.com> <3818384.1616106942@sss.pgh.pa.us> <3828009.1616109022@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 18 Mar 2021 19:10:22 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3858395.1616110003.1@sss.pgh.pa.us> Date: Thu, 18 Mar 2021 19:26:43 -0400 Message-ID: <3858396.1616110003@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > This is gcc 4.5, but hopefully whatever shuts it up will also work on 4.7. > I'll work on figuring that out. Actually, the problem is pretty obvious after comparing this use of foreach_delete_current() to every other one. I'm not sure why the compiler warnings are phrased just as they are, but the fix I just pushed does make 4.5 happy. regards, tom lane