pgsql: Demote pg_unreachable() in heapam to an assertion.

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема pgsql: Demote pg_unreachable() in heapam to an assertion.
Дата
Msg-id E1mgW7n-0001DG-Lx@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Demote pg_unreachable() in heapam to an assertion.

Commit d168b66682, which overhauled index deletion, added a
pg_unreachable() to the end of a sort comparator used when sorting heap
TIDs from an index page.  This allows the compiler to apply
optimizations that assume that the heap TIDs from the index AM must
always be unique.

That doesn't seem like a good idea now, given recent reports of
corruption involving duplicate TIDs in indexes on Postgres 14.  Demote
to an assertion, just in case.

Backpatch: 14-, where index deletion was overhauled.

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/bd9f4cf0ee5336ce4f9f3103521740baccfb3825

Modified Files
--------------
src/backend/access/heap/heapam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Test and document the behavior of initialization cross-refs in p
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: When fetching WAL for a basebackup, report errors with a sensibl