pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: TupleHashTable: store additional data along with tuple.
Date: Sat, 11 Jan 2025 01:32:27 +0000
Message-ID: <E1tWQMV-000uoV-1O@gemulon.postgresql.org> (raw)

TupleHashTable: store additional data along with tuple.

Previously, the caller needed to allocate the memory and the
TupleHashTable would store a pointer to it. That wastes space for the
palloc overhead as well as the size of the pointer itself.

Now, the TupleHashTable relies on the caller to correctly specify the
additionalsize, and allocates that amount of space. The caller can
then request a pointer into that space.

Discussion: https://postgr.es/m/b9cbf0219a9859dc8d240311643ff4362fd9602c.camel@j-davis.com
Reviewed-by: Heikki Linnakangas

Branch
------
master

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

Modified Files
--------------
src/backend/executor/execGrouping.c | 57 +++++++++++++++++++++++++++++++++++--
src/backend/executor/nodeAgg.c      | 20 ++++++-------
src/backend/executor/nodeSetOp.c    | 17 +++++------
src/backend/executor/nodeSubplan.c  |  2 +-
src/include/executor/executor.h     |  3 ++
src/include/nodes/execnodes.h       | 10 ++-----
6 files changed, 78 insertions(+), 31 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1tWQMV-000uoV-1O@gemulon.postgresql.org>
Permalink:  ../E1tWQMV-000uoV-1O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tWQMV-000uoV-1O@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: TupleHashTable: store additional data along with tuple.
  In-Reply-To: <E1tWQMV-000uoV-1O@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox