postgresql/src/include/lib
Jeff Davis 6ae4e8eae7 Allow simplehash to use already-calculated hash values.
Add _lookup_hash and _insert_hash functions for callers that have
already calculated the hash value of the key.

The immediate use case is for hash algorithms that write to disk in
partitions. The hash value can be calculated once, used to perform a
lookup, used to select the partition, then written to the partition
along with the tuple. When the tuple is read back, the hash value does
not need to be recalculated.

Author: Jeff Davis
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/48abe675e1330f0c264ab2fe0d4ff23eb244f9ef.camel%40j-davis.com
2019-08-01 16:05:49 -07:00
..
binaryheap.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
bipartite_match.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
bloomfilter.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
dshash.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
hyperloglog.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
ilist.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
integerset.h Add IntegerSet, to hold large sets of 64-bit ints efficiently. 2019-03-22 13:21:45 +02:00
knapsack.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
pairingheap.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
rbtree.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
simplehash.h Allow simplehash to use already-calculated hash values. 2019-08-01 16:05:49 -07:00
stringinfo.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00