Don't use abbreviated keys for the final merge pass.

Robert Haas <rhaas@postgresql.org>

Commit: 5cefbf5a6c4466ac6b1cc2a4316b4eba9108c802
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-01-23T16:58:31Z
Releases: 9.5.0
Don't use abbreviated keys for the final merge pass.

When we write tuples out to disk and read them back in, the abbreviated
keys become non-abbreviated, because the readtup routines don't know
anything about abbreviation.  But without this fix, the rest of the
code still thinks the abbreviation-aware compartor should be used,
so chaos ensues.

Report by Andrew Gierth; patch by Peter Geoghegan.

Files

PathChange+/−
src/backend/utils/sort/tuplesort.c modified +16 −0