Thread: pgsql: Add ExecCopySlotMinimalTupleExtra().
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 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(-)