diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-19 01:13:41 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-08-19 01:13:41 +0000 |
commit | 80860c32d92fe3445dcb7de70091354c9d0406b0 (patch) | |
tree | 2119ed51447a2c45fc75dab13e8ec89115a9890a /src/include/executor/executor.h | |
parent | 23e10843db588928e18bd58018c2e70f4548f177 (diff) |
Improve dynahash.c's API so that caller can specify the comparison function
as well as the hash function (formerly the comparison function was hardwired
as memcmp()). This makes it possible to eliminate the special-purpose
hashtable management code in execGrouping.c in favor of using dynahash to
manage tuple hashtables; which is a win because dynahash knows how to expand
a hashtable when the original size estimate was too small, whereas the
special-purpose code was too stupid to do that. (See recent gripe from
Stephan Szabo about poor performance when hash table size estimate is way
off.) Free side benefit: when using string_hash, the default comparison
function is now strncmp() instead of memcmp(). This should eliminate some
part of the overhead associated with larger NAMEDATALEN values.
Diffstat (limited to 'src/include/executor/executor.h')
-rw-r--r-- | src/include/executor/executor.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index af2f123d2d6..88449034fee 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: executor.h,v 1.99 2003/08/08 21:42:44 momjian Exp $ + * $Id: executor.h,v 1.100 2003/08/19 01:13:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -71,8 +71,6 @@ extern TupleHashTable BuildTupleHashTable(int numCols, AttrNumber *keyColIdx, extern TupleHashEntry LookupTupleHashEntry(TupleHashTable hashtable, TupleTableSlot *slot, bool *isnew); -extern TupleHashEntry ScanTupleHashTable(TupleHashTable hashtable, - TupleHashIterator *state); /* * prototypes from functions in execJunk.c |