Tweak writetup_heap/readtup_heap to avoid storing the tuple identity
Tom Lane <tgl@sss.pgh.pa.us>
Tweak writetup_heap/readtup_heap to avoid storing the tuple identity and transaction visibility fields of tuples being sorted. These are always uninteresting in a tuple being sorted (if the fields were actually selected, they'd have been pulled out into user columns beforehand). This saves about 24 bytes per row being sorted, which is a useful savings for any but the widest of sort rows. Per recent discussion.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/sort/tuplesort.c | modified | +85 −18 |
| src/include/utils/tuplesort.h | modified | +6 −2 |