summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2005-12-06 16:59:22 +0000
committerTom Lane2005-12-06 16:59:22 +0000
commita025aa179c4ca15915ea2c523894faa31b2ca2f9 (patch)
tree9260b2f6ff08b91953c34d7aa6f0ef8b611be72b
parent8b20f8a51deef702047cf2d6c1872de37644205a (diff)
In a nestloop inner indexscan, it's OK to use pushed-down baserestrictinfo
clauses even if it's an outer join. This is a corner case since such clauses could only arise from weird OUTER JOIN ON conditions, but worth fixing. Per example from Ron at cheapcomplexdevices.com.
-rw-r--r--src/backend/optimizer/path/indxpath.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c
index 6c702c255d2..28182c23724 100644
--- a/src/backend/optimizer/path/indxpath.c
+++ b/src/backend/optimizer/path/indxpath.c
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.147.4.1 2005/04/20 21:48:22 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.147.4.2 2005/12/06 16:59:22 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -666,10 +666,6 @@ group_clauses_by_indexkey_for_join(Query *root,
{
RestrictInfo *rinfo = (RestrictInfo *) lfirst(i);
- /* Can't use pushed-down clauses in outer join */
- if (isouterjoin && rinfo->ispusheddown)
- continue;
-
if (match_clause_to_indexcol(rel,
index,
indexcol,