1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-14 08:21:07 +03:00

Planner did the wrong thing with index-scan-backward plans: generated

them, but forgot to attach relevant restriction clauses, so that the
plan represented a scan over the whole table with restrictions applied
as qpquals not indexquals.  Another day, another bug...
This commit is contained in:
Tom Lane
2000-07-13 05:47:29 +00:00
parent cb292206c5
commit 9191d684a7

View File

@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.86 2000/07/05 23:11:22 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.87 2000/07/13 05:47:29 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -195,7 +195,7 @@ create_index_paths(Query *root,
useful_for_ordering(root, rel, index, ForwardScanDirection)) useful_for_ordering(root, rel, index, ForwardScanDirection))
add_path(rel, (Path *) add_path(rel, (Path *)
create_index_path(root, rel, index, create_index_path(root, rel, index,
NIL, restrictclauses,
ForwardScanDirection)); ForwardScanDirection));
} }
@ -207,7 +207,7 @@ create_index_paths(Query *root,
if (useful_for_ordering(root, rel, index, BackwardScanDirection)) if (useful_for_ordering(root, rel, index, BackwardScanDirection))
add_path(rel, (Path *) add_path(rel, (Path *)
create_index_path(root, rel, index, create_index_path(root, rel, index,
NIL, restrictclauses,
BackwardScanDirection)); BackwardScanDirection));
/* /*