On Thu, Jan 2, 2025 at 7:24 AM David Rowley <dgrowle...@gmail.com> wrote: > > Bump wouldn't work due to the SH_FREE() in SH_GROW() when resizing the > table. If sizeof(TupleHashEntryData) were a power-of-two, then there'd > be no wastage as the hash table always has a power-of-two bucket count > and two powers-of-two multiplied are always a power-of-two value. > Unfortunately, TupleHashEntryData is 24 bytes and I don't see any easy > way to shrink it to 16 bytes.
FYI, there is a proposal for that at https://www.postgresql.org/message-id/817d244237878cebdff0bc363718feaf49a1ea7d.ca...@j-davis.com -- John Naylor Amazon Web Services