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 1ozrLH-0006UF-9B for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Nov 2022 03:31:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ozrLF-0005Cd-QG for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Nov 2022 03:31:29 +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 1ozrLF-0005CU-IJ for pgsql-bugs@lists.postgresql.org; Tue, 29 Nov 2022 03:31:29 +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 1ozrL9-0006ho-4N for pgsql-bugs@lists.postgresql.org; Tue, 29 Nov 2022 03:31:28 +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 2AT3VJ9X799828; Mon, 28 Nov 2022 22:31:19 -0500 From: Tom Lane To: Richard Guo cc: Daniel Gustafsson , xinwen@stu.scu.edu.cn, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17700: An assert failed in prepjointree.c In-reply-to: References: <17700-2b5c10d917c30687@postgresql.org> <556194.1669649617@sss.pgh.pa.us> <627613.1669652527@sss.pgh.pa.us> <793071.1669688653@sss.pgh.pa.us> Comments: In-reply-to Richard Guo message dated "Tue, 29 Nov 2022 11:12:02 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <799826.1669692679.1@sss.pgh.pa.us> Date: Mon, 28 Nov 2022 22:31:19 -0500 Message-ID: <799827.1669692679@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Guo writes: > BTW, I wonder if we need the JOIN_RIGHT case here since JOIN_RIGHT > should have been flipped around to become JOIN_LEFT. Hmm, you're right, that's done in reduce_outer_joins which precedes this step. regards, tom lane