7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.32 1998/09/01 04:29:47 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.33 1998/11/22 10:48:43 vadim Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -63,7 +63,7 @@ static Node *fix_indxqual_references(Node *clause, Path *index_path);
63
63
static Temp * make_temp (List * tlist ,List * keys ,Oid * operators ,
64
64
Plan * plan_node ,int temptype );
65
65
static IndexScan * make_indexscan (List * qptlist ,List * qpqual ,Index scanrelid ,
66
- List * indxid ,List * indxqual ,Cost cost );
66
+ List * indxid ,List * indxqual ,List * indxqualorig , Cost cost );
67
67
static NestLoop * make_nestloop (List * qptlist ,List * qpqual ,Plan * lefttree ,
68
68
Plan * righttree );
69
69
static HashJoin * make_hashjoin (List * tlist ,List * qpqual ,
@@ -405,6 +405,7 @@ create_indexscan_node(IndexPath *best_path,
405
405
lfirsti (best_path -> path .parent -> relids ),
406
406
best_path -> indexid ,
407
407
fixed_indxqual ,
408
+ indxqual ,
408
409
best_path -> path .path_cost );
409
410
410
411
return scan_node ;
@@ -937,6 +938,7 @@ make_indexscan(List *qptlist,
937
938
Index scanrelid ,
938
939
List * indxid ,
939
940
List * indxqual ,
941
+ List * indxqualorig ,
940
942
Cost cost )
941
943
{
942
944
IndexScan * node = makeNode (IndexScan );
@@ -951,6 +953,7 @@ make_indexscan(List *qptlist,
951
953
node -> scan .scanrelid = scanrelid ;
952
954
node -> indxid = indxid ;
953
955
node -> indxqual = indxqual ;
956
+ node -> indxqualorig = indxqualorig ;
954
957
node -> scan .scanstate = (CommonScanState * )NULL ;
955
958
956
959
return node ;