]> granicus.if.org Git - postgresql/commit
Don't use abbreviated keys for the final merge pass.
authorRobert Haas <rhaas@postgresql.org>
Fri, 23 Jan 2015 16:58:31 +0000 (11:58 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 23 Jan 2015 16:58:31 +0000 (11:58 -0500)
commit5cefbf5a6c4466ac6b1cc2a4316b4eba9108c802
treefb074b1dfe7beffcadf890a3d7264a9043fe53c6
parent6a3c6ba0ba2bf86254d43b40569cdf3012cf12aa
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.
src/backend/utils/sort/tuplesort.c