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

From Greg Sabino Mullane
Subject Re: Index (primary key) corrupt?
Date
Msg-id CAKAnmmJogm0T4vF5nvhzK=GbfAcPhsLtKR_yRn-neMQP7S2_YQ@mail.gmail.com
Whole thread
In response to Re: Index (primary key) corrupt?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses RE: Index (primary key) corrupt?
List pgsql-general
On Mon, Mar 9, 2026 at 3:53 PM 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


pgsql-general by date:

Previous
From: Juan Rodrigo Alejandro Burgos Mella
Date:
Subject: Re: LISTAGG à la Oracle in PostgreSQL
Next
From: Wim Rouquart
Date:
Subject: RE: Index (primary key) corrupt?