Add ExecCopySlotMinimalTupleExtra().
authorJeff Davis <jdavis@postgresql.org>
Tue, 25 Mar 2025 05:05:53 +0000 (22:05 -0700)
committerJeff Davis <jdavis@postgresql.org>
Tue, 25 Mar 2025 05:05:53 +0000 (22:05 -0700)
commita0942f441ed651f6345d969b7a8f4774eda1fceb
treec40b5889e11c5794963f90096e5f4ba5390059b0
parent4d143509cbfae0207c35abffae7b0e3b4d078349
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@gmail.com>
Discussion: https://postgr.es/m/CAApHDvppeqw2pNM-+ahBOJwq2QmC0hOAGsmCpC89QVmEoOvsdg@mail.gmail.com
src/backend/access/common/heaptuple.c
src/backend/executor/execTuples.c
src/backend/executor/nodeGatherMerge.c
src/backend/utils/sort/tuplesortvariants.c
src/backend/utils/sort/tuplestore.c
src/include/access/htup_details.h
src/include/executor/tuptable.h