From: Tom Lane <tgl@sss.pgh.pa.us>
To: milist ujang <ujang.milist@gmail.com>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: ERROR: catalog is missing 3 attribute(s) for relid 150243
Date: Fri, 19 Aug 2022 00:42:44 -0400
Message-ID: <2927386.1660884164@sss.pgh.pa.us> (raw)
In-Reply-To: <CACG9ogzssc83K8P19tmCQemsqL4uF-LC4YGyNHstXdwuRbohTQ@mail.gmail.com>
References: <CACG9ogy69xLrvm7zHqYBCDFLPqWgBKW0e3R3ry6Y9Z1ASOEzmA@mail.gmail.com>
<CACG9ogxmH7rYX2_5ydZ3nHJeE+NYqyAPhdXs2WmP_g-Kj9bFFA@mail.gmail.com>
<20220819040234.ossib2ixphaolhz2@jrouhaud>
<CACG9ogzssc83K8P19tmCQemsqL4uF-LC4YGyNHstXdwuRbohTQ@mail.gmail.com>
milist ujang <ujang.milist@gmail.com> writes:
> On Fri, Aug 19, 2022 at 11:02 AM Julien Rouhaud <rjuju123@gmail.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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ujang.milist@gmail.com, rjuju123@gmail.com
Subject: Re: ERROR: catalog is missing 3 attribute(s) for relid 150243
In-Reply-To: <2927386.1660884164@sss.pgh.pa.us>
References: <CACG9ogy69xLrvm7zHqYBCDFLPqWgBKW0e3R3ry6Y9Z1ASOEzmA@mail.gmail.com> <CACG9ogxmH7rYX2_5ydZ3nHJeE+NYqyAPhdXs2WmP_g-Kj9bFFA@mail.gmail.com> <20220819040234.ossib2ixphaolhz2@jrouhaud> <CACG9ogzssc83K8P19tmCQemsqL4uF-LC4YGyNHstXdwuRbohTQ@mail.gmail.com> <2927386.1660884164@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox