aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/path/orindxpath.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-09-21 15:41:28 +0000
committerBruce Momjian <bruce@momjian.us>1998-09-21 15:41:28 +0000
commit748e3003176c94d5db2174e959b46f7745d806a7 (patch)
tree2afa77055d92ab055557121b5b2803847a843cc0 /src/backend/optimizer/path/orindxpath.c
parent06b8c8a8b8962ec9fa6116d150f6abb967be3247 (diff)
downloadpostgresql-748e3003176c94d5db2174e959b46f7745d806a7.tar.gz
postgresql-748e3003176c94d5db2174e959b46f7745d806a7.zip
Fix for AND/OR handling.
Diffstat (limited to 'src/backend/optimizer/path/orindxpath.c')
-rw-r--r--src/backend/optimizer/path/orindxpath.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/orindxpath.c b/src/backend/optimizer/path/orindxpath.c
index 3f8d6b15daf..31bd977de16 100644
--- a/src/backend/optimizer/path/orindxpath.c
+++ b/src/backend/optimizer/path/orindxpath.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.11 1998/09/01 04:29:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/orindxpath.c,v 1.12 1998/09/21 15:41:27 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -104,6 +104,15 @@ create_or_index_paths(Query *root,
pathnode->path.pathtype = T_IndexScan;
pathnode->path.parent = rel;
+ pathnode->path.p_ordering.ordtype = SORTOP_ORDER;
+ /*
+ * This is an IndexScan, but it does index lookups based
+ * on the order of the fields specified in the WHERE clause,
+ * not in any order, so the sortop is NULL.
+ */
+ pathnode->path.p_ordering.ord.sortop = NULL;
+ pathnode->path.keys = NIL; /* not sure about this, bjm 1998/09/21 */
+
pathnode->indexqual = lcons(clausenode, NIL);
pathnode->indexid = indexids;
pathnode->path.path_cost = cost;