Re: ERROR: catalog is missing 3 attribute(s) for relid 150243

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: milist ujang <ujang(dot)milist(at)gmail(dot)com>
Cc: Julien Rouhaud <rjuju123(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: catalog is missing 3 attribute(s) for relid 150243
Date: 2022-08-19 04:42:44
Message-ID: 2927386.1660884164@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

milist ujang <ujang(dot)milist(at)gmail(dot)com> writes:
> On Fri, Aug 19, 2022 at 11:02 AM Julien Rouhaud <rjuju123(at)gmail(dot)com> wrote:
>> What it means is that you likely have data corruption. You could try
>> to reindex pg_attribute and see if that fixes that specific problems,
>> but even if it does you will have to investigate how data got
>> corrupted, fix that root problem, and then try to check for other
>> corrupted data or restore from a sane backup.

> yes we have a problem with vm; suddenly restart without reason....

Ugh.

> I've done reinding pg_class, pg_attribute, pg_constraint without luck.

That was your only chance of an easy way out :-(. At this point you
clearly have data corruption in one or more system catalogs, and there's
no particular reason to think that the damage is only in the catalogs
and not also in your user-data tables.

If the data is worth a substantial amount of money to you, I'd recommend
hiring a professional Postgres support company with experience in data
recovery. You can find some links here:
https://www.postgresql.org/support/professional_support/

Otherwise, restore from your latest backup, and resolve to get better
at keeping backups, and ask some hard questions about the reliability
of the storage stack you're sitting on.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message gzh 2022-08-19 04:42:54 Re:Re: Different execution plan between PostgreSQL 8.2 and 12.5
Previous Message milist ujang 2022-08-19 04:27:50 Re: ERROR: catalog is missing 3 attribute(s) for relid 150243