Re: Incorrect CHUNKHDRSZ in nodeAgg.c - Mailing list pgsql-hackers

From David Rowley
Subject Re: Incorrect CHUNKHDRSZ in nodeAgg.c
Date
Msg-id CAApHDvor5NL7sKwf4-yw_qK_T9n2Sh=gfVaoojOFBbfA487njw@mail.gmail.com
Whole thread Raw
In response to Re: Incorrect CHUNKHDRSZ in nodeAgg.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Incorrect CHUNKHDRSZ in nodeAgg.c
List 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 by date:

Previous
From: jian he
Date:
Subject: Re: pg_dump, pg_dumpall, pg_restore: Add --no-policies option
Next
From: Nazir Bilal Yavuz
Date:
Subject: Re: per backend I/O statistics