pgsql: amcheck: Support for different header sizes of short varlena dat

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: amcheck: Support for different header sizes of short varlena dat
Дата
Msg-id E1ro9aA-005KqH-9z@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
amcheck: Support for different header sizes of short varlena datum

In the heap, tuples may contain short varlena datum with both 1B header and 4B
headers.  But the corresponding index tuple should always have such varlena's
with 1B headers.  So, for fingerprinting, we need to convert.

Backpatch to all supported versions.

Discussion: https://postgr.es/m/flat/7bdbe559-d61a-4ae4-a6e1-48abdf3024cc%40postgrespro.ru
Author: Michael Zhilin
Reviewed-by: Alexander Lakhin, Andrey Borodin, Jian He, Alexander Korotkov
Backpatch-through: 12

Branch
------
master

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

Modified Files
--------------
contrib/amcheck/expected/check_btree.out | 13 ++++++++++++
contrib/amcheck/sql/check_btree.sql      | 11 ++++++++++
contrib/amcheck/verify_nbtree.c          | 36 +++++++++++++++++++++++++++-----
3 files changed, 55 insertions(+), 5 deletions(-)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: amcheck: Normalize index tuples containing uncompressed varlena
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add temporal FOREIGN KEY contraints