From: Michael Paquier <michael@paquier.xyz>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Abhijit Gharami <abhijitgharami@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: root page 3 of index "pg_class_oid_index" has level 0, expected 1
Date: Thu, 14 Nov 2019 16:54:57 +0900
Message-ID: <20191114075457.GF1910@paquier.xyz> (raw)
In-Reply-To: <d7fb945420c8cbe5483d4823c1e61ffa3e506cfe.camel@cybertec.at>
References: <CAA5_DuAAVjcm0=JFVB2os_aDOiKZtnGWszk29t4CpeDdRbVx8w@mail.gmail.com>
<d7fb945420c8cbe5483d4823c1e61ffa3e506cfe.camel@cybertec.at>
On Thu, Nov 14, 2019 at 08:26:48AM +0100, Laurenz Albe wrote:
> If you have data corruption, you shouldn't use pg_upgrade to upgrade.
> pg_dumpall / psql is the way to go.
Please refer to this wiki page:
https://wiki.postgresql.org/wiki/Corruption
If you have a cluster in such a state, you have risks of having a
corruption which has spread, and you should not reuse this data folder
as-is. You can think of this REINDEX as a short-term solution to
retrieve as much of your data as you can so as you can dump it, and
then restore it into a safer location. For corruptions with system
indexes, you also have the option of using ignore_system_indexes.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, laurenz.albe@cybertec.at, abhijitgharami@gmail.com
Subject: Re: root page 3 of index "pg_class_oid_index" has level 0, expected 1
In-Reply-To: <20191114075457.GF1910@paquier.xyz>
References: <CAA5_DuAAVjcm0=JFVB2os_aDOiKZtnGWszk29t4CpeDdRbVx8w@mail.gmail.com> <d7fb945420c8cbe5483d4823c1e61ffa3e506cfe.camel@cybertec.at> <20191114075457.GF1910@paquier.xyz>
* 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