1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-27 07:42:10 +03:00

Remove no-longer-used fields in Hash and HashJoin nodes.

This commit is contained in:
Tom Lane
1999-05-18 21:34:29 +00:00
parent 26069a58e8
commit 353d36f979
6 changed files with 21 additions and 87 deletions

View File

@@ -7,7 +7,7 @@
*
*
* 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;
/* both are unused !.. */
newnode->hashjointablekey = from->hashjointablekey;
newnode->hashjointablesize = from->hashjointablesize;
return newnode;
}
@@ -545,10 +541,6 @@ _copyHash(Hash *from)
*/
Node_Copy(from, newnode, hashkey);
/* both are unused !.. */
newnode->hashtablekey = from->hashtablekey;
newnode->hashtablesize = from->hashtablesize;
return newnode;
}

View File

@@ -5,7 +5,7 @@
*
* 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
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -385,14 +385,11 @@ _outHashJoin(StringInfo str, HashJoin *node)
_outNode(str, node->hashclauses);
appendStringInfo(str,
" :hashjoinop %u :hashjointable 0x%x :hashjointablekey %d ",
node->hashjoinop,
(int) node->hashjointable,
node->hashjointablekey);
" :hashjoinop %u ",
node->hashjoinop);
appendStringInfo(str,
" :hashjointablesize %d :hashdone %d ",
node->hashjointablesize,
" :hashdone %d ",
node->hashdone);
}
@@ -536,11 +533,6 @@ _outHash(StringInfo str, Hash *node)
appendStringInfo(str, " :hashkey ");
_outNode(str, node->hashkey);
appendStringInfo(str, " :hashtable 0x%x :hashtablekey %d :hashtablesize %d ",
(int) node->hashtable,
node->hashtablekey,
node->hashtablesize);
}
/*****************************************************************************

View File

@@ -7,7 +7,7 @@
*
*
* 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
* Most of the read functions for plan nodes are tested. (In fact, they
@@ -454,18 +454,6 @@ _readHashJoin()
token = lsptok(NULL, &length); /* get hashjoinop */
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 */
local_node->hashdone = false;
@@ -680,18 +668,6 @@ _readHash()
token = lsptok(NULL, &length); /* eat :hashkey */
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;
}

View File

@@ -7,7 +7,7 @@
*
*
* 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->righttree = righttree;
node->hashclauses = hashclauses;
node->hashjointable = NULL;
node->hashjointablekey = 0;
node->hashjointablesize = 0;
node->hashdone = false;
return node;
@@ -1071,9 +1068,6 @@ make_hash(List *tlist, Var *hashkey, Plan *lefttree)
plan->lefttree = lefttree;
plan->righttree = NULL;
node->hashkey = hashkey;
node->hashtable = NULL;
node->hashtablekey = 0;
node->hashtablesize = 0;
return node;
}