summaryrefslogtreecommitdiff
path: root/src/include/utils/hsearch.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-04-14 20:32:43 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-04-14 20:32:43 +0000
commit055467d5049b928ebc8e38c2bc479413db64eab6 (patch)
treee5142d61ac99ab3fd429d99fd3b311988405f417 /src/include/utils/hsearch.h
parent162bd08b3f2e6783d1d75ae79f86fc444d34a28d (diff)
downloadpostgresql-055467d5049b928ebc8e38c2bc479413db64eab6.tar.gz
Marginal hack to use a specialized hash function for dynahash hashtables
whose keys are OIDs. The only one that looks particularly performance critical is the relcache hashtable, but as long as we've got the function we may as well use it wherever it's applicable.
Diffstat (limited to 'src/include/utils/hsearch.h')
-rw-r--r--src/include/utils/hsearch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/hsearch.h b/src/include/utils/hsearch.h
index 9773dc733f..e6293bc000 100644
--- a/src/include/utils/hsearch.h
+++ b/src/include/utils/hsearch.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/utils/hsearch.h,v 1.34 2004/12/31 22:03:46 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/utils/hsearch.h,v 1.35 2005/04/14 20:32:43 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -184,5 +184,6 @@ extern long hash_select_dirsize(long num_entries);
*/
extern uint32 string_hash(const void *key, Size keysize);
extern uint32 tag_hash(const void *key, Size keysize);
+extern uint32 oid_hash(const void *key, Size keysize);
#endif /* HSEARCH_H */