pgsql: HashAgg: use Bump allocator for hash TupleHashTable entries.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: HashAgg: use Bump allocator for hash TupleHashTable entries.
Date: 2025-03-25 05:06:46
Message-ID: E1twwUv-000s4A-2d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

HashAgg: use Bump allocator for hash TupleHashTable entries.

The entries aren't freed until the entire hash table is destroyed, so
use the Bump allocator to improve allocation speed, avoid wasting
space on the chunk header, and avoid wasting space due to the
power-of-two allocations.

Discussion: https://postgr.es/m/CAApHDvqv1aNB4cM36FzRwivXrEvBO_LsG_eQ3nqDXTjECaatOQ@mail.gmail.com
Reviewed-by: David Rowley

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cc721c459d3783bbdb4beb1bbfa802a5328d15a2

Modified Files
--------------
src/backend/executor/execUtils.c | 17 +++---
src/backend/executor/nodeAgg.c | 111 ++++++++++++++++++++++++++++++++-------
src/include/nodes/execnodes.h | 5 +-
3 files changed, 104 insertions(+), 29 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-03-25 05:19:58 pgsql: Add support for custom_query_jumble as a node field attribute
Previous Message Amit Kapila 2025-03-25 04:23:29 pgsql: Fix the typo in the test case added in 73eba5004a.