RE: Index (primary key) corrupt? - Mailing list pgsql-general

From Wim Rouquart
Subject RE: Index (primary key) corrupt?
Date
Msg-id AS2PR05MB10754848BE9C45CEF4F881D5AEF46A@AS2PR05MB10754.eurprd05.prod.outlook.com
Whole thread Raw
In response to Re: Index (primary key) corrupt?  (Greg Sabino Mullane <htamfids@gmail.com>)
Responses Re: Index (primary key) corrupt?
List pgsql-general

Internal

Let me get this straight, are you still contesting that the index is actually not part of the dumpfile and I somehow just keep on ‘missing it’?  

 

From: Greg Sabino Mullane <htamfids@gmail.com>
Sent: dinsdag 10 maart 2026 15:15
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Wim Rouquart <wim.rouquart@kbc.be>; pgsql-general@lists.postgresql.org
Subject: Re: Index (primary key) corrupt?

 

 

The real sender of this external email is htamfids@gmail.com



 

On Mon, Mar 9, 2026 at 3:53PM Adrian Klaver <adrian.klaver@aklaver.com> wrote:

Yeah, but the indrelid did not change after the the REINDEX.

 

Agreed, but none of this makes sense. pg_dump grabs pks via a bulk pg_index scan based on table oids, so I wanted to rule out some problem there.

 

I'm chalking this one up to user error, not database corruption, as the OP has not actually shown us the output of how they are determining the missing index, and then how the reindex fixes it (although I appreciate the pg_index query results). To put another way, user error is a much more likely explanation than anything else given the lack of specific data.

 

Cheers,

Greg

 

 


Disclaimer

pgsql-general by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Re: Index (primary key) corrupt?
Next
From: Greg Sabino Mullane
Date:
Subject: Re: Index (primary key) corrupt?