pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: amcheck: Support for different header sizes of short varlena dat
Date: Sat, 23 Mar 2024 22:08:59 +0000
Message-ID: <E1ro9Xv-005Kmz-4Y@gemulon.postgresql.org> (raw)

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
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/50f8611d073e255c9d5b3792965595879c22c610

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(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1ro9Xv-005Kmz-4Y@gemulon.postgresql.org>
Permalink:  ../E1ro9Xv-005Kmz-4Y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ro9Xv-005Kmz-4Y@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: amcheck: Support for different header sizes of short varlena dat
  In-Reply-To: <E1ro9Xv-005Kmz-4Y@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox