Add ExecCopySlotMinimalTupleExtra().
Jeff Davis <jdavis@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/heaptuple.c | modified | +21 −6 |
| src/backend/executor/execTuples.c | modified | +13 −11 |
| src/backend/executor/nodeGatherMerge.c | modified | +1 −1 |
| src/backend/utils/sort/tuplesortvariants.c | modified | +1 −1 |
| src/backend/utils/sort/tuplestore.c | modified | +3 −3 |
| src/include/access/htup_details.h | modified | +4 −3 |
| src/include/executor/tuptable.h | modified | +18 −2 |
Discussion
- Reduce TupleHashEntryData struct size by half 21 messages · 2024-11-18 → 2025-06-13