Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ah2oL-0004GY-Dd for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Mar 2016 22:24:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ah2oK-00040N-W6 for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Mar 2016 22:24:01 +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 1ah2oK-00040B-BW for pgsql-bugs@postgresql.org; Fri, 18 Mar 2016 22:24:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ah2oH-0004Sn-Iw for pgsql-bugs@postgresql.org; Fri, 18 Mar 2016 22:23:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2IMNpVL013349; Fri, 18 Mar 2016 18:23:51 -0400 From: Tom Lane To: David Gould cc: Jim Nasby , Alvaro Herrera , Jeff Janes , Pg Bugs , Josh Berkus Subject: Re: BUG #13750: Autovacuum slows down with large numbers of tables. More workers makes it slower. In-reply-to: <20160318150818.32982178@engels> References: <20160302034537.0b1c2da7@engels> <20160315204026.GA29216@alvherre.pgsql> <20160315142816.5dca09dd@engels> <56EBAB26.4090905@BlueTreble.com> <16126.1458308374@sss.pgh.pa.us> <20160318150818.32982178@engels> Comments: In-reply-to David Gould message dated "Fri, 18 Mar 2016 15:08:18 -0700" Date: Fri, 18 Mar 2016 18:23:51 -0400 Message-ID: <13348.1458339831@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 writes: > 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. Uh, what? The autovacuum code already looks at the stats maintained by the collector. If what you said means anything, it means "let's move the autovac scheduling logic into the collector", which seems neither useful nor sound from a modularity standpoint. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs