Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agudd-00009V-2q for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Mar 2016 13:40:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1agudc-00036k-LV for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Mar 2016 13:40:24 +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 1agucz-0002Dv-NY for pgsql-bugs@postgresql.org; Fri, 18 Mar 2016 13:39:45 +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 1agucx-0001kM-8q for pgsql-bugs@postgresql.org; Fri, 18 Mar 2016 13:39:44 +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 u2IDdYeV016127; Fri, 18 Mar 2016 09:39:34 -0400 From: Tom Lane To: Jim Nasby cc: David Gould , 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: <56EBAB26.4090905@BlueTreble.com> References: <20160302034537.0b1c2da7@engels> <20160315204026.GA29216@alvherre.pgsql> <20160315142816.5dca09dd@engels> <56EBAB26.4090905@BlueTreble.com> Comments: In-reply-to Jim Nasby message dated "Fri, 18 Mar 2016 02:15:50 -0500" Date: Fri, 18 Mar 2016 09:39:34 -0400 Message-ID: <16126.1458308374@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 Jim Nasby writes: > I actually wonder if instead of doing all the the hard way in C whether > we should just use SPI for each worker to build it's list of tables. The > big advantage that would provide is the ability for users to customize > the scheduling, but I suspect it'd make the code simpler too. By that you mean "user can write a SQL query that determines autovacuum targets"? -1. That would bring us back to the bad old days where a poorly-thought-out vacuum cron job would miss tables and lead to a database shutdown. Not to mention SQL injection risks. If we need to improve autovac's strategy, let's do that, but not by deeming it the user's problem. 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