diff options
author | Jeff Davis <jdavis@postgresql.org> | 2019-08-01 14:52:43 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2019-08-01 16:05:49 -0700 |
commit | 6ae4e8eae78e0781633f7b40a1b5cc189bc40923 (patch) | |
tree | c24ef85befaf43809d23706130a2099df30b4725 /src/backend/access/gist/gistget.c | |
parent | 7266d0997dd2a0632da38a594c78e25ff21df67e (diff) | |
download | postgresql-6ae4e8eae78e0781633f7b40a1b5cc189bc40923.tar.gz |
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
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions