Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 86533126F1B for ; Wed, 18 Apr 2012 23:41:35 -0300 (ADT) Received: from [58.251.152.67] (helo=szxga04-in.huawei.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SKhIs-0000CH-IE for pgsql-bugs@postgresql.org; Thu, 19 Apr 2012 02:41:34 +0000 Received: from huawei.com (szxga04-in [172.24.2.12]) by szxga04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0M2P00506GOX6Y@szxga04-in.huawei.com> for pgsql-bugs@postgresql.org; Thu, 19 Apr 2012 10:38:57 +0800 (CST) Received: from szxrg02-dlp.huawei.com ([172.24.2.119]) by szxga04-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0M2P00D3LGO59T@szxga04-in.huawei.com> for pgsql-bugs@postgresql.org; Thu, 19 Apr 2012 10:38:57 +0800 (CST) Received: from szxeml209-edg.china.huawei.com ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.1.9-GA) with ESMTP id AIL62349; Thu, 19 Apr 2012 10:38:57 +0800 Received: from SZXEML405-HUB.china.huawei.com (10.82.67.60) by szxeml209-edg.china.huawei.com (172.24.2.184) with Microsoft SMTP Server (TLS) id 14.1.323.3; Thu, 19 Apr 2012 10:38:18 +0800 Received: from blrprnc09ns (10.18.96.98) by szxeml405-hub.china.huawei.com (10.82.67.60) with Microsoft SMTP Server id 14.1.323.3; Thu, 19 Apr 2012 10:38:51 +0800 Date: Thu, 19 Apr 2012 08:08:50 +0530 From: Amit Kapila Subject: FW: clarification for generate join implied equalities X-Originating-IP: [10.18.96.98] To: pgsql-bugs@postgresql.org Message-id: <001f01cd1dd5$8e4ad1c0$aae07540$%kapila@huawei.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Content-type: multipart/alternative; boundary="Boundary_(ID_fO4G9QzeE5RWC3XWepfmhA)" Content-language: en-us Thread-index: Ac0d0Sk+vANhQQ4pRv+M+lhbbudb/wAA+KmQ X-CFilter-Loop: Reflected X-Host-Lookup-Failed: Reverse DNS lookup failed for 58.251.152.67 (failed) X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201204/115 X-Sequence-Number: 32866 --Boundary_(ID_fO4G9QzeE5RWC3XWepfmhA) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT No need to reply the below mail. I am able to generate the scenario. One of them is basically when there is an expression involving relations on one side and Var on other side. Select * from t1,t2 where t1.c1 + t2.c2 = t1.c3; From: Amit Kapila [mailto:amit.kapila@huawei.com] Sent: Thursday, April 19, 2012 7:37 AM To: 'PostgreSQL-development' Subject: clarification for generate join implied equalities In function generate_join_implied_equalities_normal(), in which kind of query it can have all three outer_members, inner_members, new_members set? There is handling related to that in the same function down which I wanted to understand. --Boundary_(ID_fO4G9QzeE5RWC3XWepfmhA) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT

No need to reply the below mail.

I am able to generate the scenario.

One of them is basically when there is an expression involving relations on one side and Var on other side.

Select * from t1,t2 where t1.c1 + t2.c2 = t1.c3;

 

From: Amit Kapila [mailto:amit.kapila@huawei.com]
Sent: Th 37 AM
To: 'PostgreSQL-development'
Subject: clarification for generate join implied equalities

 

In function generate_join_implied_equalities_normal(), in which kind of query it can have all three outer_members, inner_members, new_members set?

There is handling related to that in the same function down which I wanted to understand.

--Boundary_(ID_fO4G9QzeE5RWC3XWepfmhA)--