mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 22:21:25 +02:00
Remove no-longer-used fields in Hash and HashJoin nodes.
This commit is contained in:
parent
26069a58e8
commit
353d36f979
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.79 1999/05/12 15:01:31 wieck Exp $
|
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.80 1999/05/18 21:34:27 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -357,10 +357,6 @@ _copyHashJoin(HashJoin *from)
|
|||||||
|
|
||||||
newnode->hashjoinop = from->hashjoinop;
|
newnode->hashjoinop = from->hashjoinop;
|
||||||
|
|
||||||
/* both are unused !.. */
|
|
||||||
newnode->hashjointablekey = from->hashjointablekey;
|
|
||||||
newnode->hashjointablesize = from->hashjointablesize;
|
|
||||||
|
|
||||||
return newnode;
|
return newnode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -545,10 +541,6 @@ _copyHash(Hash *from)
|
|||||||
*/
|
*/
|
||||||
Node_Copy(from, newnode, hashkey);
|
Node_Copy(from, newnode, hashkey);
|
||||||
|
|
||||||
/* both are unused !.. */
|
|
||||||
newnode->hashtablekey = from->hashtablekey;
|
|
||||||
newnode->hashtablesize = from->hashtablesize;
|
|
||||||
|
|
||||||
return newnode;
|
return newnode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: outfuncs.c,v 1.82 1999/05/17 17:03:13 momjian Exp $
|
* $Id: outfuncs.c,v 1.83 1999/05/18 21:34:28 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Every (plan) node in POSTGRES has an associated "out" routine which
|
* Every (plan) node in POSTGRES has an associated "out" routine which
|
||||||
@ -385,14 +385,11 @@ _outHashJoin(StringInfo str, HashJoin *node)
|
|||||||
_outNode(str, node->hashclauses);
|
_outNode(str, node->hashclauses);
|
||||||
|
|
||||||
appendStringInfo(str,
|
appendStringInfo(str,
|
||||||
" :hashjoinop %u :hashjointable 0x%x :hashjointablekey %d ",
|
" :hashjoinop %u ",
|
||||||
node->hashjoinop,
|
node->hashjoinop);
|
||||||
(int) node->hashjointable,
|
|
||||||
node->hashjointablekey);
|
|
||||||
|
|
||||||
appendStringInfo(str,
|
appendStringInfo(str,
|
||||||
" :hashjointablesize %d :hashdone %d ",
|
" :hashdone %d ",
|
||||||
node->hashjointablesize,
|
|
||||||
node->hashdone);
|
node->hashdone);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -536,11 +533,6 @@ _outHash(StringInfo str, Hash *node)
|
|||||||
|
|
||||||
appendStringInfo(str, " :hashkey ");
|
appendStringInfo(str, " :hashkey ");
|
||||||
_outNode(str, node->hashkey);
|
_outNode(str, node->hashkey);
|
||||||
|
|
||||||
appendStringInfo(str, " :hashtable 0x%x :hashtablekey %d :hashtablesize %d ",
|
|
||||||
(int) node->hashtable,
|
|
||||||
node->hashtablekey,
|
|
||||||
node->hashtablesize);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.62 1999/05/17 17:03:14 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.63 1999/05/18 21:34:29 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Most of the read functions for plan nodes are tested. (In fact, they
|
* Most of the read functions for plan nodes are tested. (In fact, they
|
||||||
@ -454,18 +454,6 @@ _readHashJoin()
|
|||||||
token = lsptok(NULL, &length); /* get hashjoinop */
|
token = lsptok(NULL, &length); /* get hashjoinop */
|
||||||
local_node->hashjoinop = strtoul(token, NULL, 10);
|
local_node->hashjoinop = strtoul(token, NULL, 10);
|
||||||
|
|
||||||
token = lsptok(NULL, &length); /* eat :hashjointable */
|
|
||||||
token = lsptok(NULL, &length); /* eat hashjointable */
|
|
||||||
local_node->hashjointable = NULL;
|
|
||||||
|
|
||||||
token = lsptok(NULL, &length); /* eat :hashjointablekey */
|
|
||||||
token = lsptok(NULL, &length); /* eat hashjointablekey */
|
|
||||||
local_node->hashjointablekey = 0;
|
|
||||||
|
|
||||||
token = lsptok(NULL, &length); /* eat :hashjointablesize */
|
|
||||||
token = lsptok(NULL, &length); /* eat hashjointablesize */
|
|
||||||
local_node->hashjointablesize = 0;
|
|
||||||
|
|
||||||
token = lsptok(NULL, &length); /* eat :hashdone */
|
token = lsptok(NULL, &length); /* eat :hashdone */
|
||||||
token = lsptok(NULL, &length); /* eat hashdone */
|
token = lsptok(NULL, &length); /* eat hashdone */
|
||||||
local_node->hashdone = false;
|
local_node->hashdone = false;
|
||||||
@ -680,18 +668,6 @@ _readHash()
|
|||||||
token = lsptok(NULL, &length); /* eat :hashkey */
|
token = lsptok(NULL, &length); /* eat :hashkey */
|
||||||
local_node->hashkey = (Var *) nodeRead(true);
|
local_node->hashkey = (Var *) nodeRead(true);
|
||||||
|
|
||||||
token = lsptok(NULL, &length); /* eat :hashtable */
|
|
||||||
token = lsptok(NULL, &length); /* eat hashtable address */
|
|
||||||
local_node->hashtable = NULL;
|
|
||||||
|
|
||||||
token = lsptok(NULL, &length); /* eat :hashtablekey */
|
|
||||||
token = lsptok(NULL, &length); /* get hashtablekey */
|
|
||||||
local_node->hashtablekey = 0;
|
|
||||||
|
|
||||||
token = lsptok(NULL, &length); /* eat :hashtablesize */
|
|
||||||
token = lsptok(NULL, &length); /* get hashtablesize */
|
|
||||||
local_node->hashtablesize = 0;
|
|
||||||
|
|
||||||
return local_node;
|
return local_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.54 1999/05/10 00:45:19 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.55 1999/05/18 21:34:29 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1050,9 +1050,6 @@ make_hashjoin(List *tlist,
|
|||||||
plan->lefttree = lefttree;
|
plan->lefttree = lefttree;
|
||||||
plan->righttree = righttree;
|
plan->righttree = righttree;
|
||||||
node->hashclauses = hashclauses;
|
node->hashclauses = hashclauses;
|
||||||
node->hashjointable = NULL;
|
|
||||||
node->hashjointablekey = 0;
|
|
||||||
node->hashjointablesize = 0;
|
|
||||||
node->hashdone = false;
|
node->hashdone = false;
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
@ -1071,9 +1068,6 @@ make_hash(List *tlist, Var *hashkey, Plan *lefttree)
|
|||||||
plan->lefttree = lefttree;
|
plan->lefttree = lefttree;
|
||||||
plan->righttree = NULL;
|
plan->righttree = NULL;
|
||||||
node->hashkey = hashkey;
|
node->hashkey = hashkey;
|
||||||
node->hashtable = NULL;
|
|
||||||
node->hashtablekey = 0;
|
|
||||||
node->hashtablesize = 0;
|
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: execnodes.h,v 1.27 1999/03/23 16:51:00 momjian Exp $
|
* $Id: execnodes.h,v 1.28 1999/05/18 21:34:26 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -492,24 +492,16 @@ typedef struct MergeJoinState
|
|||||||
/* ----------------
|
/* ----------------
|
||||||
* HashJoinState information
|
* HashJoinState information
|
||||||
*
|
*
|
||||||
* hj_HashTable address of the hash table for the hashjoin
|
* hj_HashTable hash table for the hashjoin
|
||||||
* hj_HashTableShmId shared memory id of hash table
|
* hj_CurBucketNo bucket# for current outer tuple
|
||||||
* hj_CurBucket the current hash bucket that we are searching
|
* hj_CurTuple last inner tuple matched to current outer
|
||||||
* for matches of the current outer tuple
|
* tuple, or NULL if starting search
|
||||||
* hj_CurTuple the current matching inner tuple in the
|
* (CurBucketNo and CurTuple are meaningless
|
||||||
* current hash bucket
|
* unless OuterTupleSlot is nonempty!)
|
||||||
* hj_CurOTuple the current matching inner tuple in the
|
|
||||||
* current hash overflow chain
|
|
||||||
* hj_InnerHashKey the inner hash key in the hashjoin condition
|
* hj_InnerHashKey the inner hash key in the hashjoin condition
|
||||||
* hj_OuterBatches file descriptors for outer batches
|
|
||||||
* hj_InnerBatches file descriptors for inner batches
|
|
||||||
* hj_OuterReadPos current read position of outer batch
|
|
||||||
* hj_OuterReadBlk current read block of outer batch
|
|
||||||
* hj_OuterTupleSlot tuple slot for outer tuples
|
* hj_OuterTupleSlot tuple slot for outer tuples
|
||||||
* hj_HashTupleSlot tuple slot for hashed tuples
|
* hj_HashTupleSlot tuple slot for hashed tuples
|
||||||
*
|
*
|
||||||
*
|
|
||||||
*
|
|
||||||
* JoinState information
|
* JoinState information
|
||||||
*
|
*
|
||||||
* CommonState information
|
* CommonState information
|
||||||
@ -526,15 +518,9 @@ typedef struct HashJoinState
|
|||||||
{
|
{
|
||||||
JoinState jstate; /* its first field is NodeTag */
|
JoinState jstate; /* its first field is NodeTag */
|
||||||
HashJoinTable hj_HashTable;
|
HashJoinTable hj_HashTable;
|
||||||
IpcMemoryId hj_HashTableShmId;
|
int hj_CurBucketNo;
|
||||||
HashBucket hj_CurBucket;
|
HashJoinTuple hj_CurTuple;
|
||||||
HeapTuple hj_CurTuple;
|
|
||||||
OverflowTuple hj_CurOTuple;
|
|
||||||
Var *hj_InnerHashKey;
|
Var *hj_InnerHashKey;
|
||||||
File *hj_OuterBatches;
|
|
||||||
File *hj_InnerBatches;
|
|
||||||
char *hj_OuterReadPos;
|
|
||||||
int hj_OuterReadBlk;
|
|
||||||
TupleTableSlot *hj_OuterTupleSlot;
|
TupleTableSlot *hj_OuterTupleSlot;
|
||||||
TupleTableSlot *hj_HashTupleSlot;
|
TupleTableSlot *hj_HashTupleSlot;
|
||||||
} HashJoinState;
|
} HashJoinState;
|
||||||
@ -668,7 +654,7 @@ typedef CommonState UniqueState;
|
|||||||
/* ----------------
|
/* ----------------
|
||||||
* HashState information
|
* HashState information
|
||||||
*
|
*
|
||||||
* hashBatches file descriptors for the batches
|
* hashtable hash table for the hashjoin
|
||||||
*
|
*
|
||||||
* CommonState information
|
* CommonState information
|
||||||
*
|
*
|
||||||
@ -683,7 +669,7 @@ typedef CommonState UniqueState;
|
|||||||
typedef struct HashState
|
typedef struct HashState
|
||||||
{
|
{
|
||||||
CommonState cstate; /* its first field is NodeTag */
|
CommonState cstate; /* its first field is NodeTag */
|
||||||
File *hashBatches;
|
HashJoinTable hashtable;
|
||||||
} HashState;
|
} HashState;
|
||||||
|
|
||||||
#ifdef NOT_USED
|
#ifdef NOT_USED
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: plannodes.h,v 1.24 1999/03/23 16:51:04 momjian Exp $
|
* $Id: plannodes.h,v 1.25 1999/05/18 21:34:26 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -221,9 +221,6 @@ typedef struct HashJoin
|
|||||||
List *hashclauses;
|
List *hashclauses;
|
||||||
Oid hashjoinop;
|
Oid hashjoinop;
|
||||||
HashJoinState *hashjoinstate;
|
HashJoinState *hashjoinstate;
|
||||||
HashJoinTable hashjointable;
|
|
||||||
IpcMemoryKey hashjointablekey;
|
|
||||||
int hashjointablesize;
|
|
||||||
bool hashdone;
|
bool hashdone;
|
||||||
} HashJoin;
|
} HashJoin;
|
||||||
|
|
||||||
@ -320,9 +317,6 @@ typedef struct Hash
|
|||||||
Plan plan;
|
Plan plan;
|
||||||
Var *hashkey;
|
Var *hashkey;
|
||||||
HashState *hashstate;
|
HashState *hashstate;
|
||||||
HashJoinTable hashtable;
|
|
||||||
IpcMemoryKey hashtablekey;
|
|
||||||
int hashtablesize;
|
|
||||||
} Hash;
|
} Hash;
|
||||||
|
|
||||||
#ifdef NOT_USED
|
#ifdef NOT_USED
|
||||||
|
Loading…
Reference in New Issue
Block a user