Re: Incorrect CHUNKHDRSZ in nodeAgg.c

Поиск
Список
Период
Сортировка
От John Naylor
Тема Re: Incorrect CHUNKHDRSZ in nodeAgg.c
Дата
Msg-id CANWCAZa5HzVH0uJ4XSJFatAtaGK7iND7JoJE9Pyd6b9SM_9=vA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Incorrect CHUNKHDRSZ in nodeAgg.c  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: Incorrect CHUNKHDRSZ in nodeAgg.c
Список pgsql-hackers
On Thu, Jan 2, 2025 at 7:24 AM David Rowley <dgrowleyml@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.camel@j-davis.com

--
John Naylor
Amazon Web Services



В списке pgsql-hackers по дате отправления: