Skip to content

Commit 9191d68

Browse files
committed
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...
1 parent cb29220 commit 9191d68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/optimizer/path/indxpath.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.86 2000/07/05 23:11:22 tgl Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.87 2000/07/13 05:47:29 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -195,7 +195,7 @@ create_index_paths(Query *root,
195195
useful_for_ordering(root, rel, index, ForwardScanDirection))
196196
add_path(rel, (Path *)
197197
create_index_path(root, rel, index,
198-
NIL,
198+
restrictclauses,
199199
ForwardScanDirection));
200200
}
201201

@@ -207,7 +207,7 @@ create_index_paths(Query *root,
207207
if (useful_for_ordering(root, rel, index, BackwardScanDirection))
208208
add_path(rel, (Path *)
209209
create_index_path(root, rel, index,
210-
NIL,
210+
restrictclauses,
211211
BackwardScanDirection));
212212

213213
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy