pgsql: Add ExecCopySlotMinimalTupleExtra().

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add ExecCopySlotMinimalTupleExtra().
Date: 2025-03-25 05:06:46
Message-ID: E1twwUv-000s4E-2n@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add ExecCopySlotMinimalTupleExtra().

Allows an "extra" argument that allocates extra memory at the end of
the MinimalTuple. This is important for callers that need to store
additional data, but do not want to perform an additional allocation.

Suggested-by: David Rowley <dgrowleyml(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAApHDvppeqw2pNM-+ahBOJwq2QmC0hOAGsmCpC89QVmEoOvsdg@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/access/common/heaptuple.c | 27 +++++++++++++++++++++------
src/backend/executor/execTuples.c | 24 +++++++++++++-----------
src/backend/executor/nodeGatherMerge.c | 2 +-
src/backend/utils/sort/tuplesortvariants.c | 2 +-
src/backend/utils/sort/tuplestore.c | 6 +++---
src/include/access/htup_details.h | 7 ++++---
src/include/executor/tuptable.h | 20 ++++++++++++++++++--
7 files changed, 61 insertions(+), 27 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.