pgsql: Fix possible sorting error when aborting use of abbreviated keys

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Fix possible sorting error when aborting use of abbreviated keys
Дата
Msg-id E1bbuyh-0002MX-Fs@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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.

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/48b9ca0b60ce4e92caf6b2ad68d40d09f1795fca

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix possible sorting error when aborting use of abbreviated keys
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix possible sorting error when aborting use of abbreviated keys