Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiK6s-0001h3-VF for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2019 14:50:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hiK6r-0007cU-RV for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2019 14:50:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiK6r-0007UI-Cx for pgsql-hackers@lists.postgresql.org; Tue, 02 Jul 2019 14:50:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hiK6p-0001HB-BD for pgsql-hackers@postgresql.org; Tue, 02 Jul 2019 14:50:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x62Eo2cp010857; Tue, 2 Jul 2019 10:50:02 -0400 From: Tom Lane To: Andres Freund cc: Alexander Korotkov , pgsql-hackers Subject: Re: Hash join explain is broken In-reply-to: <29496.1562026087@sss.pgh.pa.us> References: <20190611074557.bf6wejaj6ctrjxqd@alap3.anarazel.de> <20190611082220.eyhgjj47bj6jdkqp@alap3.anarazel.de> <23550.1560465527@sss.pgh.pa.us> <93FA6FE5-03C5-4AB1-B0D8-C1FA00C72121@anarazel.de> <20190618070027.a3sh7z7afgsdyzyy@alap3.anarazel.de> <20190702000150.uv6hzllogkv3gu37@alap3.anarazel.de> <29496.1562026087@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 01 Jul 2019 20:08:07 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10855.1562079002.1@sss.pgh.pa.us> Date: Tue, 02 Jul 2019 10:50:02 -0400 Message-ID: <10856.1562079002@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Andres Freund writes: >> Tom, any comments? Otherwise I'll go ahead, and commit after a round or >> two of polishing. > Sorry for not getting to this sooner --- I'll try to look tomorrow. I took a look, and I think this is going in the right direction. We definitely need a test case corresponding to the live bug, and I think the comments could use more work, and there are some cosmetic things (I wouldn't add the new struct Hash field at the end, for instance). regards, tom lane