pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: shauncutts@factfiber.com
To: pgsql-general@lists.postgresql.org
Subject: Re: Corrupt index stopping autovacuum system wide
Date: Wed, 17 Jul 2019 20:43:58 -0400
Message-ID: <4aa8e980bd7ab2d50252599c9149b19f@factfiber.com> (raw)
In-Reply-To: <20190717221421.muxfrw2o2iai4xk6@alap3.anarazel.de>
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>
	<20190717221421.muxfrw2o2iai4xk6@alap3.anarazel.de>

On 17.07.2019 18:14, Andres Freund wrote:
>
>
> To me that means that we need prioritization across databases, and
> between tables, and probably by multiple criteria. I suspect there 
> need
> to be multiple criteria how urgent vacuuming is, and autovacuum ought 
> to
> try to make progress on all of them.
>

I'm not a contributor, and don't know the code base, so don't normally 
comment. But it occurs to me in the present case that there may be a 
short-term workaround for the current problem: could autovacuum visit 
tables in a random order? Then at least all tables would get vacuumed 
eventually (in the current case). If, later, more complex priorities are 
implemented, they could be probabilistic weights.

Best,

-- Shaun Cutts





view thread (17+ messages)  latest in thread

Message-ID: <4aa8e980bd7ab2d50252599c9149b19f@factfiber.com>
Permalink:  ../4aa8e980bd7ab2d50252599c9149b19f@factfiber.com/
Also on:    postgresql.org/message-id/4aa8e980bd7ab2d50252599c9149b19f@factfiber.com

 · 

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: shauncutts@factfiber.com
  Subject: Re: Corrupt index stopping autovacuum system wide
  In-Reply-To: <4aa8e980bd7ab2d50252599c9149b19f@factfiber.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> <26265.1563384443@sss.pgh.pa.us> <20190717221421.muxfrw2o2iai4xk6@alap3.anarazel.de> <4aa8e980bd7ab2d50252599c9149b19f@factfiber.com>

* 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