diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-06-15 22:51:45 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-06-15 22:51:45 +0000 |
commit | cb02610e503957d7ed9b4375537fb6275c16f1fa (patch) | |
tree | 540391048748403dc597c35b4cb662d2d4cc3494 /src/backend/optimizer/path/orindxpath.c | |
parent | 3fb6f1347ffbfcbba48b37ea35925f6b19821bf6 (diff) |
Adjust nestloop-with-inner-indexscan plan generation so that we catch
some cases of redundant clauses that were formerly not caught. We have
to special-case this because the clauses involved never get attached to
the same join restrictlist and so the existing logic does not notice
that they are redundant.
Diffstat (limited to 'src/backend/optimizer/path/orindxpath.c')
-rw-r--r-- | src/backend/optimizer/path/orindxpath.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/orindxpath.c b/src/backend/optimizer/path/orindxpath.c index 10eb050f3a3..a078b3f5a93 100644 --- a/src/backend/optimizer/path/orindxpath.c +++ b/src/backend/optimizer/path/orindxpath.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.50 2003/05/28 22:32:49 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.51 2003/06/15 22:51:45 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -89,6 +89,9 @@ create_or_index_paths(Query *root, RelOptInfo *rel) */ pathnode->path.pathkeys = NIL; + /* It's not an innerjoin path. */ + pathnode->indexjoinclauses = NIL; + /* We don't actually care what order the index scans in. */ pathnode->indexscandir = NoMovementScanDirection; |