Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ah2eq-0003rY-4Z for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Mar 2016 22:14:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ah2ep-0001Ck-IG for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Mar 2016 22:14:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ah2eC-0008Hw-4R for pgsql-bugs@postgresql.org; Fri, 18 Mar 2016 22:13:32 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ah2e6-0004Fy-7Q for pgsql-bugs@postgresql.org; Fri, 18 Mar 2016 22:13:30 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.83.202.40]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id C24A1400E2E; Fri, 18 Mar 2016 15:13:20 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id A7FCD593; Fri, 18 Mar 2016 19:13:17 -0300 (CLT) Date: Fri, 18 Mar 2016 19:13:17 -0300 From: Alvaro Herrera To: David Gould Cc: Tom Lane , Jim Nasby , Jeff Janes , Pg Bugs , Josh Berkus Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower. Message-ID: <20160318221317.GA182976@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160318150818.32982178@engels> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David Gould wrote: > I have some thoughts for a different approach. In short, the stats collector > actually knows what needs vacuuming because queries that create dead tuples > tell it. I'm considering have the stats collector maintain a queue of > vacuum work and that autovacuum request work from the stats collector. When I > have something more concrete I'll post it on hackers. Hm, ideally we would have something backpatchable, but this new idea doesn't sound so to me. I think that having some variant of the patch you proposed previously would be better for the stable branches. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs