Improve sorting speed by pre-extracting the first sort-key column of
Tom Lane <tgl@sss.pgh.pa.us>
Improve sorting speed by pre-extracting the first sort-key column of each tuple, as per my proposal of several days ago. Also, clean up sort memory management by keeping all working data in a separate memory context, and refine the handling of low-memory conditions.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeSort.c | modified | +4 −1 |
| src/backend/utils/sort/tuplesort.c | modified | +600 −405 |