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 1l7sKb-00086H-Hk for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Feb 2021 04:02:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7sKa-0003BN-Ek for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Feb 2021 04:02:52 +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 1l7sKa-0003BG-9K for pgsql-bugs@lists.postgresql.org; Fri, 05 Feb 2021 04:02:52 +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 1l7sKY-0002fh-8l; Fri, 05 Feb 2021 04:02:51 +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 11542jF4075589; Thu, 4 Feb 2021 23:02:46 -0500 From: Tom Lane To: s.p.e@gmx-topmail.de cc: pgsql-bugs@lists.postgresql.org, Jeff Davis Subject: Re: Postgress 13.x: wrong result for delete with subquery In-reply-to: <2828817.1611959177@sss.pgh.pa.us> References: <2828817.1611959177@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 29 Jan 2021 17:26:17 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <75587.1612497765.1@sss.pgh.pa.us> Date: Thu, 04 Feb 2021 23:02:45 -0500 Message-ID: <75588.1612497765@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > We might be able to salvage this by having find_hash_columns examine > the Agg node's grpColIdx list and assume that columns listed there need > to be preserved. Hearing nothing from Jeff, I went ahead and pushed a fix along that line. regards, tom lane