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 1hEEue-0007d3-5F for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Apr 2019 15:13:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEEub-0003r5-QC for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Apr 2019 15:13:17 +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 1hEEub-0003qy-EQ for pgsql-hackers@lists.postgresql.org; Wed, 10 Apr 2019 15:13:17 +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 1hEEuU-0005lF-DV for pgsql-hackers@lists.postgresql.org; Wed, 10 Apr 2019 15:13:16 +0000 Received: by mail-qk1-x741.google.com with SMTP id c189so1433257qke.6 for ; Wed, 10 Apr 2019 08:13:10 -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=B18cDK2XRsh1aQ62yCn7YmAgJgE1IIbrTj6xeZaniRo=; b=gCsnqxVWte+XrwbWoQXNwtuhO+EitvTg+5+2MygX2YQarJbJmH+5a96l0r8GA8eObl g4gm8FlsHHFMdz4a2YtigP6wGrH18hVjGdHbi2nzz7vVi0+EHgcpRkN5WyTZHLWlKGte 8wWdgj/qdwEDofyr71guf9K/dPm7rfow9b+UW/5dLYPCGa9pdAmkFThjwdndbEriZqC5 znkqpIltbqKuXs46+iDnIrjiPC45SoNHQ0CAMSMatJRHFa+NSx6UX29cyRVJ7gCzwYP5 ypWe+3c2Y5wzlEaZr+eQ0cX14H1oTZEc5hOGEfXR8Oy8Vx3gBrkqyiboHalv1+QpN8YT HfzA== 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=B18cDK2XRsh1aQ62yCn7YmAgJgE1IIbrTj6xeZaniRo=; b=CogBbnHBzKvYk3Ke7tLUQU5DUmJFWnUnmtxtrJ7sOuDi1IBuou2M9btEL/kf3qLDxk 8h5f1tG0uHx0GCo5oc0JorCFxBk7weOt63/A1YVxNEWckrdGtnHoqkubdn1+VKnhwV96 xjmV4nmJnVgRejMv08rwcraM3hy8G2cHVopcRz1cjn69Am0zB45B/CHJsN+JCiRpuuIG f6jFONkvKkAbWu2x+2zPexqPrp6KMz3G1lJx+bCOrrsJlwHO7XsBgqLJ1Eh8vhzXQ2eY XkVVkSXuuDwXngYqTOffeMn58r5Nm4PwP2HFLokIPOjTQTmUSJo0svqzSb8C3wpPNj3I 1Q+A== X-Gm-Message-State: APjAAAUud7I+Up0tFUQ3xLFajvpGYneXbVanp77AWd0IggSlcLthTOvd cgRLU4O5ZjCendr7QEIHtU2xsA== X-Google-Smtp-Source: APXvYqzI6qBpzaZkNwyYNuAdSzxxM0zslAWhM29PpIC1h9pyQu9rIP47iOIDJ/9e7Fvo4YvtLouWJQ== X-Received: by 2002:a37:9e0d:: with SMTP id h13mr34325634qke.135.1554909189700; Wed, 10 Apr 2019 08:13:09 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id p27sm20958750qte.25.2019.04.10.08.13.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Apr 2019 08:13:08 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id E5E9E1217E7; Wed, 10 Apr 2019 11:13:06 -0400 (-04) Date: Wed, 10 Apr 2019 11:13:06 -0400 From: Alvaro Herrera To: Darafei =?utf-8?B?IktvbdGPcGEi?= Praliaskouski Cc: Michael Banck , David Rowley , PostgreSQL Developers Subject: Re: Berserk Autovacuum (let's save next Mandrill) Message-ID: <20190410151306.GA26795@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-Mar-31, Darafei "Komяpa" Praliaskouski wrote: > Alternative point of "if your database is super large and actively written, > you may want to set autovacuum_freeze_max_age to even smaller values so > that autovacuum load is more evenly spread over time" may be needed. I don't think it's helpful to force emergency vacuuming more frequently; quite the contrary, it's likely to cause even more issues. We should tweak autovacuum to perform freezing more preemtively instead. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services