summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-08-22 15:22:11 -0400
committerRobert Haas <rhaas@postgresql.org>2016-08-22 15:22:11 -0400
commit008c4135ccf67e74239a17a85f912d1a51b6349e (patch)
tree8258f53c25775ea9ac01717676af3233e52069eb /src/backend/access/gist/gistutil.c
parentaf5743851d7d526fadfeb9726e2b3d8b1fc5026d (diff)
downloadpostgresql-008c4135ccf67e74239a17a85f912d1a51b6349e.tar.gz
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.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions