RE: Index (primary key) corrupt?

From: Wim Rouquart <wim(dot)rouquart(at)kbc(dot)be>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: Index (primary key) corrupt?
Date: 2026-03-09 14:12:34
Message-ID: AS2PR05MB1075476F648651C8CC02D8048EF79A@AS2PR05MB10754.eurprd05.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Internal

I already saw finding the actual cause as a 'lost cause' as these things tend to happen, however what bothers me most is that a tool like amcheck which is supposed to find corruption also shows up with no result.

-----Original Message-----
From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Sent: vrijdag 6 maart 2026 17:03
To: Wim Rouquart <wim(dot)rouquart(at)kbc(dot)be>; Greg Sabino Mullane <htamfids(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Index (primary key) corrupt?

The real sender of this external email is adrian(dot)klaver(at)aklaver(dot)com

On 3/6/26 2:31 AM, Wim Rouquart wrote:
> Internal
>

>
>> As I recall this is not a large table, but for completeness what is it's average size?
>
> It has only 12 rows 😊
>
>> What are the Postgres log settings, on the source database, for?:
>
> log_error_verbosity = 'default'
> log_min_error_statement = 'fatal'
> log_min_messages = 'warning'
> log_statement = 'ddl'
>
>> Are there any entries in the Postgres log that reference this table?
>
> Nope, none found, probably because it isn't used anymore (and because
> of above log settings if it would be)
>

Well at this point I don't see that it is possible to determine a cause for why the index does not transfer or throw an error in the process.
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

Disclaimer <https://www.kbc.com/KBCmailDisclaimer>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2026-03-09 14:52:54 Re: Index (primary key) corrupt?
Previous Message Greg Sabino Mullane 2026-03-09 13:06:56 Re: Unexpected deadlock across two separate rows, using Postgres 17 and Django's select_for_update()