Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfMF2-0006A1-FU for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 12:07:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfMF1-0000at-3r for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 12:07:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfMF0-0000am-Sv for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 12:07:14 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kfMEy-0005Pv-Es for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 12:07:14 +0000 Received: by mail-wr1-x433.google.com with SMTP id c17so1898137wrc.11 for ; Wed, 18 Nov 2020 04:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=GkDVMzmkwOEnq4/WK1E8PK8W7v97vNybE8h2G36MWRI=; b=C9Dtc4Ynu20QjBCHHDbm+PJ+2YRlTz6MWWaiXi57sJ+AqLCKd9U7oPnDP0qvODkUTc BvkgZ37/5mxjraU38jbSom5J1VbY2fyZ+w7z21Ly/R5KAUIF/0jRrJ3aam52o3MK9X3h v8p2SR164PjnjGF9HzkSu4Z6IyH/nf5mV+1QAFj9ziskoYLs2lHCm9DFIpqza2AbwJ+S 5q5nBJauBB42FJX5lnM4r3k89d70UdqiCgIB/DwRdelud2AgvG4vtq1tCQC4bp62Ribp kkMfhAWpwyH/SSCWyzY883y02lonW0S5B6zdQmoSBtlGN/g5A3xiWk0vDTwMFsCvYtH+ 3biA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=GkDVMzmkwOEnq4/WK1E8PK8W7v97vNybE8h2G36MWRI=; b=oy9mLos1qR8x6DqIgVUZQ/6wIKQZjMdOS8sHDmv4Ouj7hHP0snqkuOkfRY6KjVfDJ6 Uvk18QmQp5I02GmjnqEXMu6ykzsCl4YemipeI+CmH3hdnkUcBt5lqQ+wzVC+XzNFVNWY jnzNTjk89UICe7UdLj0jpddfhFtREJTsSeBnyqvYRToBuXrepv8oHbCGxTkSOEKJ2WI+ MpCeCRJMkv4OwNW6E1q3J5D4e3x0xbcHeBIURFL0Z9cK8MOK4qBp7eYbPPCEl8fD+HRx 9ctCsxZk15k+focPuU62wZwwkHeNk9wnWQfSmAsWBtZyFOIRp5jYqYx7hBJt5hzo19f4 iQOg== X-Gm-Message-State: AOAM5316NvFgC6tRPPQfZZCLKeXc7QE3DzV2PBXVVKuReR7bhrNBPzEA jMa73bvnbJSTEZc04Rq7v3qVDAVKxVp34w== X-Google-Smtp-Source: ABdhPJzIZVd5vXkc+2fNPL8ARV2NYSOAp3pBOSlP8qwHvKrRGkU3TophvoD4E1dD5zwYCSUs74dXew== X-Received: by 2002:adf:fe0f:: with SMTP id n15mr4715817wrr.357.1605701231535; Wed, 18 Nov 2020 04:07:11 -0800 (PST) Received: from localhost.localdomain (217-149-169-56.nat.highway.telekom.at. [217.149.169.56]) by smtp.gmail.com with ESMTPSA id m20sm14409338wrg.79.2020.11.18.04.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 04:07:11 -0800 (PST) Message-ID: <75ca65304d1cb8a4288d1b78cf7adf067dbe354e.camel@cybertec.at> Subject: Re: autovacuum recommendations for Large tables From: Laurenz Albe To: Olivier Gautherot , "David G. Johnston" Cc: Atul Kumar , pgsql-general Date: Wed, 18 Nov 2020 13:07:10 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 2020-11-17 at 22:17 +0100, Olivier Gautherot wrote: > On Tue, Nov 17, 2020 at 12:05 AM David G. Johnston wrote: > > On Mon, Nov 16, 2020 at 3:57 PM Atul Kumar wrote: > > > I only have this one big table in the database of size 3113 GB with rows 7661353111. > > > > > > Right Now the autovacuum setting for that table is set to > > > {autovacuum_enabled=true,autovacuum_vacuum_scale_factor=0.2,autovacuum_analyze_scale_factor=0.2} > > > > auto-vacuum doesn't care directly about absolute size, it cares about change (relative to absolute size in many cases, hence the scale factors). > > > > David J. > > > > David is correct. > > If it helps, I put together a few thoughts and own experience on a blog: > https://sites.google.com/gautherot.net/postgresql/vacuum > > Hope you find it useful. Then I can chime in with https://www.cybertec-postgresql.com/en/tuning-autovacuum-postgresql/ Yours, Laurenz Albe