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

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't use abbreviated keys for the final merge pass.
Date: 2015-01-23 17:05:20
Message-ID: E1YEhfc-00050Y-B2@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5cefbf5a6c4466ac6b1cc2a4316b4eba9108c802

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2015-01-23 18:06:29 pgsql: vacuumdb: enable parallel mode
Previous Message Robert Haas 2015-01-23 16:49:54 pgsql: Add an explicit cast to Size to hyperloglog.c