diff options
Diffstat (limited to 'src/backend/optimizer/plan/planagg.c')
-rw-r--r-- | src/backend/optimizer/plan/planagg.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/backend/optimizer/plan/planagg.c b/src/backend/optimizer/plan/planagg.c index 9c3b151f201..38c859dfbcb 100644 --- a/src/backend/optimizer/plan/planagg.c +++ b/src/backend/optimizer/plan/planagg.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/optimizer/plan/planagg.c,v 1.3 2005/04/12 05:11:28 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/optimizer/plan/planagg.c,v 1.4 2005/04/22 21:58:31 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -343,7 +343,10 @@ build_minmax_path(Query *root, RelOptInfo *rel, MinMaxAggInfo *info) * to build the path, it's convenient to extract that first and then * look through it for the equality restrictions. */ - restrictclauses = group_clauses_by_indexkey(index); + restrictclauses = group_clauses_by_indexkey(index, + index->rel->baserestrictinfo, + NIL, + NULL); if (list_length(restrictclauses) < indexcol) continue; /* definitely haven't got enough */ @@ -376,7 +379,8 @@ build_minmax_path(Query *root, RelOptInfo *rel, MinMaxAggInfo *info) new_path = create_index_path(root, index, restrictclauses, NIL, - indexscandir); + indexscandir, + false); /* * Estimate actual cost of fetching just one row. |