TupleHashTable: store additional data along with tuple.

Jeff Davis <jdavis@postgresql.org>

Commit: e0ece2a981ee9068f50c4423e303836c2585eb02
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2025-01-11T01:14:37Z
Releases: 18.0
TupleHashTable: store additional data along with tuple.

Previously, the caller needed to allocate the memory and the
TupleHashTable would store a pointer to it. That wastes space for the
palloc overhead as well as the size of the pointer itself.

Now, the TupleHashTable relies on the caller to correctly specify the
additionalsize, and allocates that amount of space. The caller can
then request a pointer into that space.

Discussion: https://postgr.es/m/b9cbf0219a9859dc8d240311643ff4362fd9602c.camel@j-davis.com
Reviewed-by: Heikki Linnakangas

Files

Discussion