From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Aaron Pelz <aaronepelz@gmail.com>
Cc: pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: Corrupt index stopping autovacuum system wide
Date: Wed, 17 Jul 2019 14:21:38 -0400
Message-ID: <20190717182138.GA25244@alvherre.pgsql> (raw)
In-Reply-To: <CAH2-Wzm9boEusD8pyz8S2eXey01VC6PZmqAegOgUO+yRCQgTiA@mail.gmail.com>
On 2019-Jul-17, Peter Geoghegan wrote:
> Maybe nbtree VACUUM should do something more aggressive than give up
> when there is a "failed to re-find parent key" or similar condition.
> Perhaps it would make more sense to make the index inactive (for some
> value of "inactive") instead of just complaining. That might be the
> least worst option, all things considered.
Maybe we can mark an index as unvacuumable in some way? As far as I
understand, all queries using that index work, as do index updates; it's
just vacuuming that fails. If we mark the index as unvacuumable, then
vacuum just skips it (and does not run phase 3 for that table), and
things can proceed; the table's age can still be advanced. Obviously
it'll result in more bloat than in normal condition, but it shouldn't
cause the whole cluster to go down.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, pg@bowt.ie, tgl@sss.pgh.pa.us, aaronepelz@gmail.com
Subject: Re: Corrupt index stopping autovacuum system wide
In-Reply-To: <20190717182138.GA25244@alvherre.pgsql>
References: <CAH2-Wzm9boEusD8pyz8S2eXey01VC6PZmqAegOgUO+yRCQgTiA@mail.gmail.com> <20190717182138.GA25244@alvherre.pgsql>
* 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