From ddb2d78de0172b1f3a00c8e3bf35345af9952f43 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 30 Nov 2002 00:08:22 +0000 Subject: Upgrade planner and executor to allow multiple hash keys for a hash join, instead of only one. This should speed up planning (only one hash path to consider for a given pair of relations) as well as allow more effective hashing, when there are multiple hashable joinclauses. --- src/include/executor/nodeHash.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include/executor/nodeHash.h') diff --git a/src/include/executor/nodeHash.h b/src/include/executor/nodeHash.h index 8bea51e8af..654906cd3c 100644 --- a/src/include/executor/nodeHash.h +++ b/src/include/executor/nodeHash.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: nodeHash.h,v 1.25 2002/11/06 22:31:24 tgl Exp $ + * $Id: nodeHash.h,v 1.26 2002/11/30 00:08:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -24,10 +24,10 @@ extern HashJoinTable ExecHashTableCreate(Hash *node); extern void ExecHashTableDestroy(HashJoinTable hashtable); extern void ExecHashTableInsert(HashJoinTable hashtable, ExprContext *econtext, - Node *hashkey); + List *hashkeys); extern int ExecHashGetBucket(HashJoinTable hashtable, ExprContext *econtext, - Node *hashkey); + List *hashkeys); extern HeapTuple ExecScanHashBucket(HashJoinState *hjstate, List *hjclauses, ExprContext *econtext); extern void ExecHashTableReset(HashJoinTable hashtable, long ntuples); -- cgit v1.2.1