public inbox for [email protected]
help / color / mirror / Atom feedFrom: Wim Rouquart <[email protected]>
To: Ron Johnson <[email protected]>
To: [email protected] <[email protected]>
Subject: RE: Index (primary key) corrupt?
Date: Fri, 19 Sep 2025 09:29:57 +0000
Message-ID: <AS2PR05MB107548809A37E7DCC694EC7C2EF11A@AS2PR05MB10754.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <CANzqJaBSwogwtOjLz+UVnxn286G7xcnWjYvOYdeos2Je7uVHWw@mail.gmail.com>
References: <AS2PR05MB1075477BA334D4DA262AD75BFEF16A@AS2PR05MB10754.eurprd05.prod.outlook.com>
<CANzqJaBSwogwtOjLz+UVnxn286G7xcnWjYvOYdeos2Je7uVHWw@mail.gmail.com>
Internal
Hello,
When doing a pg_dump of one of our databases one of the tables primary keys doesn’t get exported. Pg_dump just skips this index, without any warning whatsoever (verbose mode was used to doublecheck).
When doing a REINDEX the issue is fixed.
As this seems to me to be some form of index corruption, I tried using amcheck (bt_index_check and bt_index_parent_check) to verify for corruption but both resulted with no issues (the index is a btree).
I would expect the corruption to show up when using amcheck, am I hitting some kind of bug here?
>> Does this problem keep happening, or has it only happened once?
It is consistent on this database/index, haven’t noticed it anywhere else yet luckily. Seems to be a one-off.
Are there any other ways to doublecheck for corruption (without enabling checksum upfront)?
>> pg_checksums is available in PG 15.
It is indeed, so to test I enabled checksums, and did a checksum test, no errors, and yes, the file containing the index is mentioned in the checks…
This concerns a PostgreSQL version 15 btw.
>> Are you at the current patch level?
Yes.
Disclaimer <https://www.kbc.com/KBCmailDisclaimer;
view thread (5+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: RE: Index (primary key) corrupt?
In-Reply-To: <AS2PR05MB107548809A37E7DCC694EC7C2EF11A@AS2PR05MB10754.eurprd05.prod.outlook.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox