Re: Incorrect CHUNKHDRSZ in nodeAgg.c
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2025-01-15T08:01:09Z
Lists: 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
Commits
-
HashAgg: use Bump allocator for hash TupleHashTable entries.
- cc721c459d37 18.0 landed
-
Fix outdated CHUNKHDRSZ value in nodeAgg.c
- d93bb8163c9c 18.0 landed