pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: marc.morad@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17937: Corrupt Indexes after reusing DRBD Device on new VM
Date: Wed, 17 May 2023 09:27:03 -0400
Message-ID: <f595ee7c-9e2d-e1c2-cdef-cab9c8197af2@joeconway.com> (raw)
In-Reply-To: <17937-c93266adaef384ff@postgresql.org>
References: <17937-c93266adaef384ff@postgresql.org>

On 5/17/23 05:42, PG Bug reporting form wrote:
> After we migrated the VM from CentOS 7 to AlmaLinux 8, we had a few issues
> with broken/corrupt indexes. This problem occured a total of 3 times. Each

> The error messages all looked very similar to the following:
> Database error: [S]ERROR#012[V]ERROR#012[C]XX002#012[M]table tid from new
> index tuple (3346213,70) cannot find insert offset between offsets 2 and 4
> of block 5485 in index

> Have you ever heard of a similiar problem ?
> Any leads what might cause these problems would be very helpful.

CentOS 7 is glibc 2.17
AlmaLinux 8 is glibc 2.28

There are known issues with glibc upgrades (in particular 2.28, but also 
in general) causing collation changes which break all indexes which use 
glibc collations (basically text, varchar, char). You need to rebuild 
them, preferably before allowing *any* write activity (inserts or updates).

-- 
Joe Conway
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com






view thread (2+ messages)

Message-ID: <f595ee7c-9e2d-e1c2-cdef-cab9c8197af2@joeconway.com>
Permalink:  ../f595ee7c-9e2d-e1c2-cdef-cab9c8197af2@joeconway.com/
Also on:    postgresql.org/message-id/f595ee7c-9e2d-e1c2-cdef-cab9c8197af2@joeconway.com

 · 

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-bugs@postgresql.org
  Cc: mail@joeconway.com, marc.morad@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17937: Corrupt Indexes after reusing DRBD Device on new VM
  In-Reply-To: <f595ee7c-9e2d-e1c2-cdef-cab9c8197af2@joeconway.com>

* 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