-
- Downloads
Extend the MinimalTuple concept to tuplesort.c, thereby reducing the
per-tuple space overhead for sorts in memory. I chose to replace the previous patch that tried to write out the bare minimum amount of data when sorting on disk; instead, just dump the MinimalTuples as-is. This wastes 3 to 10 bytes per tuple depending on architecture and null-bitmap length, but the simplification in the writetup/readtup routines seems worth it.
Showing
- src/backend/access/nbtree/nbtsort.c 2 additions, 2 deletionssrc/backend/access/nbtree/nbtsort.c
- src/backend/executor/nodeSort.c 6 additions, 13 deletionssrc/backend/executor/nodeSort.c
- src/backend/utils/sort/tuplesort.c 112 additions, 120 deletionssrc/backend/utils/sort/tuplesort.c
- src/include/utils/tuplesort.h 19 additions, 17 deletionssrc/include/utils/tuplesort.h
Loading
Please register or sign in to comment