mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
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.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.7 1997/01/10 20:17:56 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.8 1997/03/12 21:05:56 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -292,7 +292,7 @@ create_seqscan_node(Path *best_path, List *tlist, List *scan_clauses)
|
||||
if(temp == NULL)
|
||||
elog(WARN,"scanrelid is empty");
|
||||
else
|
||||
scan_relid = (Index)lfirst(temp); /* ??? who takes care of lnext? - ay */
|
||||
scan_relid = (Index)lfirsti(temp); /* ??? who takes care of lnext? - ay */
|
||||
scan_node = make_seqscan(tlist,
|
||||
scan_clauses,
|
||||
scan_relid,
|
||||
@ -640,10 +640,10 @@ fix_indxqual_references(Node *clause, Path *index_path)
|
||||
is_funcclause((Node*)get_leftop((Expr*)clause)) &&
|
||||
((Func*)((Expr*)get_leftop((Expr*)clause))->oper)->funcisindex){
|
||||
Var *newvar =
|
||||
makeVar((Index)lfirst(index_path->parent->relids),
|
||||
makeVar((Index)lfirsti(index_path->parent->relids),
|
||||
1, /* func indices have one key */
|
||||
((Func*)((Expr*)clause)->oper)->functype,
|
||||
(Index)lfirst(index_path->parent->relids),
|
||||
(Index)lfirsti(index_path->parent->relids),
|
||||
0);
|
||||
|
||||
return
|
||||
|
Reference in New Issue
Block a user