Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZPBA-0007lM-JP for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Jun 2019 00:25:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hZPB8-0004Mw-QM for pgsql-bugs@arkaria.postgresql.org; Sat, 08 Jun 2019 00:25:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZPB8-0004KC-Bn for pgsql-bugs@lists.postgresql.org; Sat, 08 Jun 2019 00:25:50 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hZPB5-00062C-Hd for pgsql-bugs@lists.postgresql.org; Sat, 08 Jun 2019 00:25:48 +0000 Received: by mail-qk1-x741.google.com with SMTP id c11so2367812qkk.8 for ; Fri, 07 Jun 2019 17:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=zytZNLUuSZt2nV4fVBNAkgq/riHb/eNmp6vJUZYrcxI=; b=a/SVQZA3A/gk5v5WC1guKA3sSU5AcEHWzZzORTctcZcoNq0Rj5vcdsjXdlS7Zgszo0 fpneZI2C3HxN1OlaXAxt5Q3FwE8HXWHlkScizPbyi8GX1RoQYCAqDd/MSHrkxh+8vgwq ZxUDZFeCi80OfwxjBIjgBZoWr+JCb55if4cqvpx+Unn63iPX4M/gVcN7btaGU4z7USNh vYs2sQWMubbrwKXFLS9xR3fNUKCwjpAynSv/XOTxfyrkZn2P9gtaqWtqh+pZb1yTOa/b Av5AtotF8HRRInWTbCWiousUytPjpUxZTm+/q24X4JCuJkqKW18Q6BDAW9wH9YGA4Bax nAVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=zytZNLUuSZt2nV4fVBNAkgq/riHb/eNmp6vJUZYrcxI=; b=Hhmfcn/KZ6n+d8h2kcDlvrqWG3A9Scnj38UIva4sLP6Wex4988+2bDruQyYFhWi9RH 0ret8nc1T5qkQxqV7XrMUgF2XkugX/QmnNP0YACZXcOGDXhKHrkaaaMGi0tqEBdJlwzW vgaGYq5xkJ4PhRbVB1wRGLYeYVv8FAtFY31BQOQDIeF/HCv1/kSW5Z6c6MnLmLnwkwfN x8iZOOFVQRrB5mQdg9f7iMETcxVguSABU2jcJ0zDoeOSXz7J3pbbLVfYZrWvkj5fSbl7 WQ5R5+NDALuhNOKGxOw4ZIqPEk5KX5smcE1L2g2xCrI34j1/cgHuI6LWdpGW0OIl9j0m Y6vw== X-Gm-Message-State: APjAAAURsXjhARvtANeDtQeouz7QAyrTM/5NexQN2vek2kcMyY3cwC+1 s5StogQsasD9LBYd6oEPP4zFpITNM40TKA== X-Google-Smtp-Source: APXvYqyzoVLRN6wwtGia/FQLzFumFyYhg9bL130RQb/dDM79BgH0n7J5jQqbBFrI1/nbe5WO395K+w== X-Received: by 2002:a37:6ac3:: with SMTP id f186mr29932198qkc.281.1559953546190; Fri, 07 Jun 2019 17:25:46 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([177.154.145.98]) by smtp.gmail.com with ESMTPSA id m21sm1592997qtp.92.2019.06.07.17.25.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 17:25:45 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 5358F1208CB; Fri, 7 Jun 2019 20:25:42 -0400 (-04) Date: Fri, 7 Jun 2019 20:25:42 -0400 From: Alvaro Herrera To: Thierry Husson Cc: Andres Freund , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15840: Vacuum does not work after database stopped for wraparound protection. Database seems unrepearable. Message-ID: <20190608002542.GA4898@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190607174952.Horde.LmbDAeB4CYQATbr-VY29_ef@webmail.iciel.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jun-07, Thierry Husson wrote: > Yes autovacuum is enabled. Aggressiveness was effectively a recent problem I > had and putting its max_worker to 8 wasn't a solution, there were all busy > 24/7 and I had to do a daily script to help it. The solution was to push > vacuum_cost_limit to 2000, since then it works like a charm. Note the I/O cost balancing thing, which seems to bite many people: if you raise max_workers without changing cost_delay or cost_limit, it doesn't have much of an effect, because each worker goes slower to accomodate. Raising the cost limit (or lowering the cost delay) does have a useful impact. In pg12 we changed the default cost_delay to 2ms (from 20ms). -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services