]> granicus.if.org Git - postgresql/commit
Extend the MinimalTuple concept to tuplesort.c, thereby reducing the
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Jun 2006 16:53:02 +0000 (16:53 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 Jun 2006 16:53:02 +0000 (16:53 +0000)
commitcdd5178c69c4cc80baedba0c7829c63b9f78d0f5
tree4b4c06a83e1845d867647207cb970680c9b93c6f
parente99507eaa1cc366bd55c1f05c99e15c0a17b3990
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.
src/backend/access/nbtree/nbtsort.c
src/backend/executor/nodeSort.c
src/backend/utils/sort/tuplesort.c
src/include/utils/tuplesort.h