public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: Wim Rouquart <[email protected]>
To: [email protected] <[email protected]>
Subject: Re: Index (primary key) corrupt?
Date: Fri, 19 Sep 2025 08:50:51 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <AS2PR05MB10754A51AB7FC85161189FF7CEF11A@AS2PR05MB10754.eurprd05.prod.outlook.com>
References: <AS2PR05MB1075477BA334D4DA262AD75BFEF16A@AS2PR05MB10754.eurprd05.prod.outlook.com>
	<[email protected]>
	<AS2PR05MB107548567EEDAAB3AF74A6C59EF11A@AS2PR05MB10754.eurprd05.prod.outlook.com>
	<[email protected]>
	<AS2PR05MB10754A51AB7FC85161189FF7CEF11A@AS2PR05MB10754.eurprd05.prod.outlook.com>

On 9/19/25 06:23, Wim Rouquart wrote:

>> What is the result for the query?:
> 
>> select * from pg_index where indexrelid  = 'idx_376814_primary'::regclass;
> 
> Name               |Value  |
> -------------------+-------+
> indexrelid         |2006873|
> indrelid           |1998823|
> indnatts           |1      |
> indnkeyatts        |1      |
> indisunique        |true   |
> indnullsnotdistinct|false  |
> indisprimary       |true   |
> indisexclusion     |false  |
> indimmediate       |true   |
> indisclustered     |false  |
> indisvalid         |true   |
> indcheckxmin       |false  |
> indisready         |true   |
> indislive          |true   |
> indisreplident     |false  |
> indkey             |{}     |
> indcollation       |{}     |
> indclass           |{}     |
> indoption          |{}     |
> indexprs           |       |
> indpred            |       |
> 

Hmm, when I do the above on 15.14 I get:

-[ RECORD 1 ]-------+-------
indexrelid          | 242209
indrelid            | 242205
indnatts            | 1
indnkeyatts         | 1
indisunique         | t
indnullsnotdistinct | f
indisprimary        | t
indisexclusion      | f
indimmediate        | t
indisclustered      | f
indisvalid          | t
indcheckxmin        | f
indisready          | t
indislive           | t
indisreplident      | f
indkey              | 1
indcollation        | 0
indclass            | 3124
indoption           | 0
indexprs            | NULL
indpred             | NULL

What is full(15.x) version of Postgres are you using?

Is it the community version or a fork or SaaS?

What do you get for queries below?:

select * from pg_opclass where oid = 3124;

select * from pg_opclass where opcname = 'int8_ops';

> 
>> How is the table populated with data?

Might be a good idea to find out.

Per a comment from Ron, does this lack of export happen every time you 
dump the table?

> 
> Same answer as above.
> 


-- 
Adrian Klaver
[email protected]






view thread (18+ 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: <[email protected]>

* 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