Introduce TupleHashTableHash() and LookupTupleHashEntryHash().

Jeff Davis <jdavis@postgresql.org>

Commit: 4eaea3db150af56aa2e40efe91997fd25f3b6d73
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2020-02-07T04:34:01Z
Releases: 13.0
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

Files

PathChange+/−
src/backend/executor/execGrouping.c modified +78 −30
src/include/executor/executor.h modified +5 −0

Discussion