pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
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 13:27:23 -0400
Message-ID: <26265.1563384443@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-WzmYJ_XuKQZWEeY34vYz_aqjV3MSAYprpCyvQ50r3_BWWA@mail.gmail.com>
References: <CAHqUQyf7dm-ABtRoF+_xfSBhCjHgKnniQ9QZ17b0mFW4q2UQ3Q@mail.gmail.com>
	<CAH2-Wz=ggW6uaepx-9riyedENaf-2LRxs89bmU1fd6i0D8F4jQ@mail.gmail.com>
	<24777.1563382630@sss.pgh.pa.us>
	<CAH2-WzmYJ_XuKQZWEeY34vYz_aqjV3MSAYprpCyvQ50r3_BWWA@mail.gmail.com>

Peter Geoghegan <pg@bowt.ie> writes:
> On Wed, Jul 17, 2019 at 9:57 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> It looks that way, but how would a broken non-shared index have held up
>> autovacuuming in other databases?  Maybe, as this one's xmin horizon
>> got further and further behind, the launcher eventually stopped
>> considering launching workers into any other databases?  That seems
>> like a bad thing; it's postponing work that will need to be done
>> eventually.

> I don't know exactly how the launcher would behave offhand, but it's
> clear that not being able to VACUUM one table in one database (because
> it has a corrupt index) ultimately risks the availability of every
> database in the cluster. Many installations receive little to no
> supervision, so it may just be a matter of time there. That is
> certainly a bad thing.

Right, you're eventually going to get to a forced shutdown if vacuum never
succeeds on one table; no question that that's bad.  My concern here is
that if we have blinders on to the extent of only processing that one
table or DB, we're unnecessarily allowing bloat to occur in other tables,
and causing that missed vacuuming work to pile up so that there's more of
it to be done once the breakage is cleared.  If the DBA doesn't notice the
problem until getting into a forced shutdown, that is going to extend his
outage time --- and, in a really bad worst case, maybe make the difference
between being able to recover at all and not.

			regards, tom lane





view thread (17+ messages)  latest in thread

Message-ID: <26265.1563384443@sss.pgh.pa.us>
Permalink:  ../26265.1563384443@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26265.1563384443@sss.pgh.pa.us

 · 

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 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, pg@bowt.ie, aaronepelz@gmail.com
  Subject: Re: Corrupt index stopping autovacuum system wide
  In-Reply-To: <26265.1563384443@sss.pgh.pa.us>
  References: <CAHqUQyf7dm-ABtRoF+_xfSBhCjHgKnniQ9QZ17b0mFW4q2UQ3Q@mail.gmail.com> <CAH2-Wz=ggW6uaepx-9riyedENaf-2LRxs89bmU1fd6i0D8F4jQ@mail.gmail.com> <24777.1563382630@sss.pgh.pa.us> <CAH2-WzmYJ_XuKQZWEeY34vYz_aqjV3MSAYprpCyvQ50r3_BWWA@mail.gmail.com> <26265.1563384443@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