aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/path/indxpath.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-03-12 21:00:17 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-03-12 21:00:17 +0000
commitb66569e41fdecab3903fd8af6cbc8bb12ae653cd (patch)
treec5b8126c45e6779c5e14f7efa0bfb93652c135d4 /src/backend/optimizer/path/indxpath.c
parent127826978a2c5ea25b20d7f06687609669323ab1 (diff)
downloadpostgresql-b66569e41fdecab3903fd8af6cbc8bb12ae653cd.tar.gz
postgresql-b66569e41fdecab3903fd8af6cbc8bb12ae653cd.zip
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] linux/alpha patches These patches lay the groundwork for a Linux/Alpha port. The port doesn't actually work unless you tweak the linker to put all the pointers in the first 32 bits of the address space, but it's at least a start. It implements the test-and-set instruction in Alpha assembly, and also fixes a lot of pointer-to-integer conversions, which is probably good anyway.
Diffstat (limited to 'src/backend/optimizer/path/indxpath.c')
-rw-r--r--src/backend/optimizer/path/indxpath.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c
index ce6a3f715e4..5a86749a66f 100644
--- a/src/backend/optimizer/path/indxpath.c
+++ b/src/backend/optimizer/path/indxpath.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.5 1997/01/22 06:25:42 vadim Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.6 1997/03/12 21:00:17 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1045,7 +1045,7 @@ index_innerjoin(Query *root, Rel *rel, List *clausegroup_list, Rel *index)
index_selectivity(lfirsti(index->relids),
index->classlist,
get_opnos(clausegroup),
- getrelid((int)lfirst(rel->relids),
+ getrelid(lfirsti(rel->relids),
root->rtable),
attnos,
values,
@@ -1061,7 +1061,7 @@ index_innerjoin(Query *root, Rel *rel, List *clausegroup_list, Rel *index)
pathnode->path.joinid = ((CInfo*)lfirst(clausegroup))->cinfojoinid;
pathnode->path.path_cost =
- cost_index((Oid)lfirst(index->relids),
+ cost_index((Oid)lfirsti(index->relids),
(int)temp_pages,
temp_selec,
rel->pages,
@@ -1150,7 +1150,7 @@ add_index_paths(List *indexpaths, List *new_indexpaths)
static bool
function_index_operand(Expr *funcOpnd, Rel *rel, Rel *index)
{
- Oid heapRelid = (Oid)lfirst(rel->relids);
+ Oid heapRelid = (Oid)lfirsti(rel->relids);
Func *function;
List *funcargs;
int *indexKeys = index->indexkeys;