postgresql/src/backend/utils/sort
Robert Haas da9659f87c Fix possible sorting error when aborting use of abbreviated keys.
Due to an error in the abbreviated key abort logic, the most recently
processed SortTuple could be incorrectly marked NULL, resulting in an
incorrect final sort order.

In the worst case, this could result in a corrupt btree index, which
would need to be rebuild using REINDEX.  However, abbrevation doesn't
abort very often, not all data types use it, and only one tuple would
end up in the wrong place, so the practical impact of this mistake may
be somewhat limited.

Report and patch by Peter Geoghegan.
2016-08-22 15:30:37 -04:00
..
.gitignore Speed up in-memory tuplesorting. 2012-02-15 12:13:32 -05:00
gen_qsort_tuple.pl Fix a low-probability crash in our qsort implementation. 2015-07-16 22:57:46 -04:00
logtape.c Use FLEXIBLE_ARRAY_MEMBER in a number of other places. 2015-02-21 16:12:14 -05:00
Makefile Fix VPATH builds, broken by my recent commit to speed up tuplesorting. 2012-02-15 15:53:53 -05:00
sortsupport.c pgindent run for 9.5 2015-05-23 21:35:49 -04:00
tuplesort.c Fix possible sorting error when aborting use of abbreviated keys. 2016-08-22 15:30:37 -04:00
tuplestore.c Fix bogus "out of memory" reports in tuplestore.c. 2015-08-04 18:18:46 -04:00