Re: Incorrect CHUNKHDRSZ in nodeAgg.c

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Incorrect CHUNKHDRSZ in nodeAgg.c
Дата
Msg-id CAApHDvor5NL7sKwf4-yw_qK_T9n2Sh=gfVaoojOFBbfA487njw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Incorrect CHUNKHDRSZ in nodeAgg.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Incorrect CHUNKHDRSZ in nodeAgg.c
Список pgsql-hackers
On Tue, 14 Jan 2025 at 09:09, Jeff Davis <pgsql@j-davis.com> wrote:
> Attached v2.

This needs to be rebased due to b4a07f532.

The following repalloc was removed by that commit.

- totalsize = MAXALIGN(firstTuple->t_len) + hashtable->additionalsize;
- firstTuple = repalloc(firstTuple, totalsize);
+ totalsize = MAXALIGN(mtup->t_len) + hashtable->additionalsize;
+ firstTuple = MemoryContextAlloc(hashtable->tablecxt, totalsize);
+ memcpy(firstTuple, mtup, mtup->t_len);

David



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