Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pzHBP-0007Gw-Ol for pgsql-bugs@arkaria.postgresql.org; Wed, 17 May 2023 13:27:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pzHBO-00061n-M8 for pgsql-bugs@arkaria.postgresql.org; Wed, 17 May 2023 13:27:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pzHBO-00061d-0f for pgsql-bugs@lists.postgresql.org; Wed, 17 May 2023 13:27:10 +0000 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1pzHBJ-000LqO-Eh for pgsql-bugs@lists.postgresql.org; Wed, 17 May 2023 13:27:09 +0000 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-561e5014336so1977697b3.1 for ; Wed, 17 May 2023 06:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joeconway.com; s=google; t=1684330025; x=1686922025; h=content-transfer-encoding:in-reply-to:subject:from:content-language :references:to:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=rvG0RGqOHSkZ5+1XgQm+rxOa6EiouI8KNVePmmszDcI=; b=ceC3kNNwPRnaM5LiqZ/L417DpZ+V80EKs2RDftwms9vNZZqy/ujo4SVr5AQ/pbTHub 1NgDdcw0t9VG7vwVG5n1VGQAA96I0yjZVaNXpjOsK3/mf3w+oyzoWOC/KxRaSbkRWHAS LJiyRcRcvAyNAwTlXlFcs6CSaOYRahis6a5unCSk7s4LoDWsfEkQ1+FdI7W6iNydB5Ww 5GHpDebaVDDHys6Uf0rgule/36nNdmdhAZbL890QZD4LohFtUig3GJJhrFfi8c5deswJ TF23WYQEO6Qf/D/ue/goq6GFH4PK9AONLtUOkGC977xBng8xwpC7bKPHr4XNVpzC0pOp DVBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684330025; x=1686922025; h=content-transfer-encoding:in-reply-to:subject:from:content-language :references:to:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rvG0RGqOHSkZ5+1XgQm+rxOa6EiouI8KNVePmmszDcI=; b=V8E2W0y9y6PTrd2tUlSaIb2X+yezX/H+GJL3Ym8qOzKwiyIp8jM1xUWBnZg4Q7SI7g Qg8hZKA+GMDlmBtxY+O+hNtwJaU1KUXB3262OLlln6RLC5uMO4Z3ThsjKlSwpHEhW48r hWGHy1iqWQAOm3POX7x1eP0dg4tUVDpvE6jhAao6RlNCmxl6NiE0oI4RUTKdjvswkUsp 7MDRcGqCbsB3+Zo3cTH/BdxAXo62z+CNb0CthZwUcIrWXWN5vC5d3ZEorhfaj+/A4iMd OaLple2AVRdq6v/fpY75hsMeraAUJo0ytDkhYspXZv6+8LPCp2wuEIeo5jyQY9AAMhA8 8W+A== X-Gm-Message-State: AC+VfDwsTqwLsDC1EJEQpDK5bdHYh7BilFGkILZG6IpGSjF76kX3gfcw ADePS9nxNWc0POXMD8X8UDhjRg== X-Google-Smtp-Source: ACHHUZ60lz7mpspNTiqPjgD5+s4KLNTMcoN9ug3TS0EgGu9R2pyMpawVkVC1yKE0RTKQsU6bx0cjYg== X-Received: by 2002:a81:67d6:0:b0:560:f6ae:a71b with SMTP id b205-20020a8167d6000000b00560f6aea71bmr2513174ywc.48.1684330024727; Wed, 17 May 2023 06:27:04 -0700 (PDT) Received: from [192.168.4.41] (162-239-31-113.lightspeed.dybhfl.sbcglobal.net. [162.239.31.113]) by smtp.gmail.com with ESMTPSA id i192-20020a816dc9000000b00545a08184e9sm646055ywc.121.2023.05.17.06.27.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 06:27:04 -0700 (PDT) Message-ID: Date: Wed, 17 May 2023 09:27:03 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 To: marc.morad@gmail.com, pgsql-bugs@lists.postgresql.org References: <17937-c93266adaef384ff@postgresql.org> Content-Language: en-US From: Joe Conway Subject: Re: BUG #17937: Corrupt Indexes after reusing DRBD Device on new VM In-Reply-To: <17937-c93266adaef384ff@postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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