Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axyg7-0005FL-Px for pgsql-admin@arkaria.postgresql.org; Wed, 04 May 2016 15:25:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axyg7-0001g2-CW for pgsql-admin@arkaria.postgresql.org; Wed, 04 May 2016 15:25:31 +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 1axyg6-0001fn-Nd for pgsql-admin@postgresql.org; Wed, 04 May 2016 15:25:30 +0000 Received: from out.smtp-auth.no-ip.com ([8.23.224.60]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1axyfz-0001uF-Ba for pgsql-admin@postgresql.org; Wed, 04 May 2016 15:25:29 +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 [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id B5560400D39; Wed, 4 May 2016 08:25:20 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 89028438; Wed, 4 May 2016 12:25:18 -0300 (CLST) Date: Wed, 4 May 2016 12:25:18 -0300 From: Alvaro Herrera To: =?utf-8?B?T25kxZllaiBTdsSbdGzDrWs=?= Cc: pgsql-admin@postgresql.org Subject: Re: Autovacuum of pg_shdepend Message-ID: <20160504152518.GA102195@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <572A1072.5080308@flexibee.eu> 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-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Ondřej Světlík wrote: > Hello, > > we have a strange problem with autovacuum. We have three workers, but > usually only one works and two are waiting as they are all trying to process > table pg_shdepend which is shared between all databases. Ooh, interesting bug. As a workaround I suggest connecting to all of your databases except one and disabling autovacuum for pg_shdepend. Then the table will be processed in the one database where you left it enabled, and the other workers will take care of the rest of the tables. I'll think about a real fix. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin