Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ay3OX-0004Zd-Da for pgsql-admin@arkaria.postgresql.org; Wed, 04 May 2016 20:27:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ay3OW-0007zn-DX for pgsql-admin@arkaria.postgresql.org; Wed, 04 May 2016 20:27:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ay3OV-0007zW-Sq for pgsql-admin@postgresql.org; Wed, 04 May 2016 20:27:39 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ay3OP-0000YW-1a for pgsql-admin@postgresql.org; Wed, 04 May 2016 20:27:39 +0000 Received: by mail-wm0-x236.google.com with SMTP id e201so202986044wme.0 for ; Wed, 04 May 2016 13:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flexibee-eu.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=yrAj/T9sdNWj2KXc3z6rh6Jfoqh5wlC8k5ATEP4OGSs=; b=q/rcbbBfo3rKIknZtoGXnw6h2jnLajTJD+JzK124Qk9zdNr+q3ReftJxwpxxTV3+v1 sNp72PptPnxV6w22z4JP2sAuCnhDMCrSiHHQhQbxD7pA3uti9w58m3yo9KeTMzL/GakE 6KJ2C2Xk9Y/G795Vva689MbO+zogCqh4TOib1KziJnM6CRgI9mqtouCx4NNbkQeq7VFX BFDqssv4iAz3PEKVT58KM440U4+e3vMOww8j4ZxWNyBFQ5041xdnM88xjY2fVObjnEDd I0nzSPgoAfyrWPSCPH3K8nL/wWwbzDALYSVfnzO5UrXFHwyZiZrELs81TlKASWyYWh9W 7DOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=yrAj/T9sdNWj2KXc3z6rh6Jfoqh5wlC8k5ATEP4OGSs=; b=hVcl7kTQtmK2DWqwuRU+HgpLfa3FHELxQuNzcieybkFlZZ7Q6EVx7k2hXSgb3Mo0YL QehNz+K23iRiP06/q+lwbI+Gji9weoGxaTuO7V29uEkrGzu9OnV9LpwFsQj+n0Uirp3I IoGove++tGEl04jDxIxXs2EntLiXU8fuRl34Co2OQu4ulj/Noivjw99umC0v4wgOqA3g dt44d4u1ae2E9Ws5ufiAR2aSE15A98zawzE6/aBXXSOcTj0lJUoMhtw2SJi8WnU+ntlE MYt5gWFt5LaauiCYdkCZpEfvddyLcQSMkpGHwkPYeqmRpjROtTCW2xOczlHv8VBGLqd3 BBNg== X-Gm-Message-State: AOPr4FXETZCXoEKrymX04FZDxvRbdP3oAU6YmtyQ2Em5Pd5j6AL2h6yNHWt8lajW18My40Ff X-Received: by 10.28.150.211 with SMTP id y202mr11248051wmd.41.1462393652159; Wed, 04 May 2016 13:27:32 -0700 (PDT) Received: from osvetlik.home ([77.48.30.240]) by smtp.gmail.com with ESMTPSA id d1sm6046539wjb.47.2016.05.04.13.27.31 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2016 13:27:31 -0700 (PDT) Subject: Re: Autovacuum of pg_shdepend To: pgsql-admin@postgresql.org References: <20160504152518.GA102195@alvherre.pgsql> <17376.1462388827@sss.pgh.pa.us> From: =?UTF-8?B?T25kxZllaiBTdsSbdGzDrWs=?= Message-ID: <572A5B32.4050302@flexibee.eu> Date: Wed, 4 May 2016 22:27:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <17376.1462388827@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) 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 Dne 4.5.2016 v 21:07 Tom Lane napsal(a): > Alvaro Herrera writes: >> 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. > > Seems like a simple answer is to consider all shared catalogs to "belong" > to only one database for autovac purposes, ie, only autovac workers in > that database would consider vacuuming them. The problem IIUC is that the > interlock against multiple workers glomming onto the same table only > considers other workers in the same DB. > > The fun part might be to decide which DB that is. I don't think we should > depend on any of the standard databases always being there. > > regards, tom lane > How about a new configuration option, something like #autovacuum_maintenance_database = postgres Ondřej -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin