Introduce TupleHashTableHash() and LookupTupleHashEntryHash().
authorJeff Davis <jdavis@postgresql.org>
Fri, 7 Feb 2020 03:39:47 +0000 (19:39 -0800)
committerJeff Davis <jdavis@postgresql.org>
Fri, 7 Feb 2020 04:34:01 +0000 (20:34 -0800)
commit4eaea3db150af56aa2e40efe91997fd25f3b6d73
tree8ccd0fb526260581c2356faa9a6f54909b6ff1b2
parente6f86f8dd9835b18890fd8e9868884dec37e3bd7
Introduce TupleHashTableHash() and LookupTupleHashEntryHash().

Expose two new entry points: one for only calculating the hash value
of a tuple, and another for looking up a hash entry when the hash
value is already known. This will be useful for disk-based Hash
Aggregation to avoid recomputing the hash value for the same tuple
after saving and restoring it from disk.

Discussion: https://postgr.es/m/37091115219dd522fd9ed67333ee8ed1b7e09443.camel%40j-davis.com
src/backend/executor/execGrouping.c
src/include/executor/executor.h