From bff0422b6c8f65b2f8210d8690a7f63f8d6e2782 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 22 Jun 2003 22:04:55 +0000 Subject: Revise hash join and hash aggregation code to use the same datatype- specific hash functions used by hash indexes, rather than the old not-datatype-aware ComputeHashFunc routine. This makes it safe to do hash joining on several datatypes that previously couldn't use hashing. The sets of datatypes that are hash indexable and hash joinable are now exactly the same, whereas before each had some that weren't in the other. --- src/include/executor/nodeHash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/executor/nodeHash.h') diff --git a/src/include/executor/nodeHash.h b/src/include/executor/nodeHash.h index da1113b32d..d6d7ea627e 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.29 2003/01/10 23:54:24 tgl Exp $ + * $Id: nodeHash.h,v 1.30 2003/06/22 22:04:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -22,7 +22,7 @@ extern TupleTableSlot *ExecHash(HashState *node); extern void ExecEndHash(HashState *node); extern void ExecReScanHash(HashState *node, ExprContext *exprCtxt); -extern HashJoinTable ExecHashTableCreate(Hash *node); +extern HashJoinTable ExecHashTableCreate(Hash *node, List *hashOperators); extern void ExecHashTableDestroy(HashJoinTable hashtable); extern void ExecHashTableInsert(HashJoinTable hashtable, ExprContext *econtext, -- cgit v1.2.1