77 *
88 *
99 * 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 $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
@@ -63,7 +63,7 @@ static Node *fix_indxqual_references(Node *clause, Path *index_path);
6363static Temp * make_temp (List * tlist ,List * keys ,Oid * operators ,
6464Plan * plan_node ,int temptype );
6565static 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 );
6767static NestLoop * make_nestloop (List * qptlist ,List * qpqual ,Plan * lefttree ,
6868Plan * righttree );
6969static HashJoin * make_hashjoin (List * tlist ,List * qpqual ,
@@ -405,6 +405,7 @@ create_indexscan_node(IndexPath *best_path,
405405lfirsti (best_path -> path .parent -> relids ),
406406best_path -> indexid ,
407407fixed_indxqual ,
408+ indxqual ,
408409best_path -> path .path_cost );
409410
410411return scan_node ;
@@ -937,6 +938,7 @@ make_indexscan(List *qptlist,
937938Index scanrelid ,
938939List * indxid ,
939940List * indxqual ,
941+ List * indxqualorig ,
940942Cost cost )
941943{
942944IndexScan * node = makeNode (IndexScan );
@@ -951,6 +953,7 @@ make_indexscan(List *qptlist,
951953node -> scan .scanrelid = scanrelid ;
952954node -> indxid = indxid ;
953955node -> indxqual = indxqual ;
956+ node -> indxqualorig = indxqualorig ;
954957node -> scan .scanstate = (CommonScanState * )NULL ;
955958
956959return node ;