Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoDCC-0004ey-6e for pgsql-general@arkaria.postgresql.org; Thu, 18 Jul 2019 20:40:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoDC9-0008WN-Ng for pgsql-general@arkaria.postgresql.org; Thu, 18 Jul 2019 20:40:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnuWl-0003ew-Bi for pgsql-general@lists.postgresql.org; Thu, 18 Jul 2019 00:44:07 +0000 Received: from mx1.mail.factfiber.com ([107.22.238.57] helo=mx1.factfiber.com) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1hnuWe-0002gb-Eb for pgsql-general@lists.postgresql.org; Thu, 18 Jul 2019 00:44:05 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mx1.factfiber.com (Postfix) with ESMTP id 8772D6A00D for ; Wed, 17 Jul 2019 20:43:59 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mx1.factfiber.com Received: from mx1.factfiber.com ([127.0.0.1]) by localhost (mx1.factfiber.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hUJ1KG8bDQ+p for ; Wed, 17 Jul 2019 20:43:58 -0400 (EDT) Received: from mx1.factfiber.com (mx1.factfiber.com [107.22.238.57]) (Authenticated sender: shauncutts@factfiber.com) by mx1.factfiber.com (Postfix) with ESMTPSA id 8AAE26A00B for ; Wed, 17 Jul 2019 20:43:58 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 17 Jul 2019 20:43:58 -0400 From: shauncutts@factfiber.com To: Subject: Re: Corrupt index stopping autovacuum system wide In-Reply-To: <20190717221421.muxfrw2o2iai4xk6@alap3.anarazel.de> References: <24777.1563382630@sss.pgh.pa.us> <26265.1563384443@sss.pgh.pa.us> <20190717221421.muxfrw2o2iai4xk6@alap3.anarazel.de> Message-ID: <4aa8e980bd7ab2d50252599c9149b19f@factfiber.com> X-Sender: shauncutts@factfiber.com User-Agent: Roundcube Webmail/0.6 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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