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: Normalize index tuples containing uncompressed varlena
Date: Sat, 23 Mar 2024 22:09:16 +0000
Message-ID: <E1ro9YC-005KpG-Dm@gemulon.postgresql.org> (raw)

amcheck: Normalize index tuples containing uncompressed varlena

It might happen that the varlena value wasn't compressed by index_form_tuple()
due to current storage parameters.  If compression is currently enabled, we
need to compress such values to match index tuple coming from the heap.

Backpatch to all supported versions.

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

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3676b846b129b975034927cdf5f57297211d6f15

Modified Files
--------------
contrib/amcheck/expected/check_btree.out | 10 ++++++++++
contrib/amcheck/sql/check_btree.sql      |  6 ++++++
contrib/amcheck/verify_nbtree.c          | 13 +++++++++++++
3 files changed, 29 insertions(+)



view thread (7+ messages)  latest in thread

Message-ID: <E1ro9YC-005KpG-Dm@gemulon.postgresql.org>
Permalink:  ../E1ro9YC-005KpG-Dm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ro9YC-005KpG-Dm@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: Normalize index tuples containing uncompressed varlena
  In-Reply-To: <E1ro9YC-005KpG-Dm@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