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 1pMXHm-0004UK-7g for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2023 16:45:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pMXHl-0001il-2m for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2023 16:45:37 +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 1pMXHk-0001ic-Pa for pgsql-hackers@lists.postgresql.org; Mon, 30 Jan 2023 16:45:36 +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 1pMXHe-0003cX-FH for pgsql-hackers@lists.postgresql.org; Mon, 30 Jan 2023 16:45:35 +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 30UGjRcu497113; Mon, 30 Jan 2023 11:45:27 -0500 From: Tom Lane To: Richard Guo cc: Pg Hackers , "Finnerty, Jim" Subject: Re: Making Vars outer-join aware In-reply-to: References: <830269.1656693747@sss.pgh.pa.us> <1903934.1657031040@sss.pgh.pa.us> <553080.1657481916@sss.pgh.pa.us> <1515100.1657633061@sss.pgh.pa.us> <2217146.1657721363@sss.pgh.pa.us> <2055912.1659383493@sss.pgh.pa.us> <1188905.1660666103@sss.pgh.pa.us> <1405792.1660677844@sss.pgh.pa.us> <1538543.1660683428@sss.pgh.pa.us> <2741731.1660848346@sss.pgh.pa.us> <1035990.1667261942@sss.pgh.pa.us> <2901865.1667685211@sss.pgh.pa.us> <4019771.1672155080@sss.pgh.pa.us> <323812.1672241806@sss.pgh.pa.us> <2043562.1674506286@sss.pgh.pa.us> Comments: In-reply-to Richard Guo message dated "Mon, 30 Jan 2023 17:56:38 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <497111.1675097127.1@sss.pgh.pa.us> Date: Mon, 30 Jan 2023 11:45:27 -0500 Message-ID: <497112.1675097127@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Guo writes: > Sorry for the delayed reply. I don't have any more review comments at > the moment, except a nitpicking one. > In optimizer/README at line 729 there is a query as > SELECT * FROM a > LEFT JOIN (SELECT * FROM b WHERE b.z = 1) ss ON (a.x = b.y) > WHERE a.x = 1; > I think it should be > SELECT * FROM a > LEFT JOIN (SELECT * FROM b WHERE b.z = 1) ss ON (a.x = ss.y) > WHERE a.x = 1; Oh, good catch, thanks. > I have no objection to get it committed. I'll push forward then. Thanks for reviewing! regards, tom lane