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 1nhWzO-00076z-R7 for pgsql-general@arkaria.postgresql.org; Thu, 21 Apr 2022 13:36:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nhWyO-00088m-9V for pgsql-general@arkaria.postgresql.org; Thu, 21 Apr 2022 13:35:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhWyN-00088d-NT for pgsql-general@lists.postgresql.org; Thu, 21 Apr 2022 13:35:51 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nhWyK-0003ZM-PM for pgsql-general@lists.postgresql.org; Thu, 21 Apr 2022 13:35:50 +0000 Received: by mail-wm1-x32f.google.com with SMTP id n126-20020a1c2784000000b0038e8af3e788so3423281wmn.1 for ; Thu, 21 Apr 2022 06:35:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=jR4cOWSv/Jpj7ZzGkyYWneiWO+6DWjTsijcNl4hqu00=; b=RUb9tbEYD+6/o3RNQaaFQK41g3jKkaK3z0o7ZB5mhkN8ZgLAQXCgr3nl8jOjBqef5G OXlTalZ7+8HDSkJGMvZbEd6yL3J2xnryvxUxosT+XWz+cCeOcAo+GDeYg3l/92XIAb9P 6ubWXH3Zb6MJJ+C6P10s02BVNgjn2vY2g1554BfOhI7zFovGlshRty4Yow+lTh8hXvB6 vx0rRaWG75n5coMLiB9WrXiXSM1q/uTc+Cr3f87rD9GzazzuLV0ZJ3wfFwoBPZ7oI1By xtfmDRdJQBu+qjahW4WX/+vOwi7OCmGYQijcO6M4DMfa6yb6Hj7oRBEftaJv32wDEOX+ Dz/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=jR4cOWSv/Jpj7ZzGkyYWneiWO+6DWjTsijcNl4hqu00=; b=gaTanw/RAaUIFewujTh0CUUfk7+A+c9iy1WAm2m3Fs8kYp8HVmuLCYo2iDPm27YGxQ NyYZGgrLQNGs7sK0SOQFT1mSnkwojvrGuEPXTvAIuwlDuNRbiicGPGiJ1GOWq1Fj39si k3LwtK9XAh2PTitSSVrSuusppu32YeHOQHYqRiiSB20xyVOaxIvSDsrz0C/cwuRjJlt4 JEoeaDtYhlF0X+P4rMCJsNuBrScl8lhLs46hWGgRqs4AoT61gt92001a3WpGKPKFrACR OsG02UzZBFq4EvjnOo9OzTmciY0NKgFtSevDSlFsM7TZsVUIXULOvGwQ9JNeEuKZlPml M5KA== X-Gm-Message-State: AOAM530rmtBY6A2QQq3mTEpgPuqDRCUyBwCC2lZqgfdgR+pgyr+Heg0s jqF+nuUzblXK1CsdLLpFUZe3mwQCSagRbA== X-Google-Smtp-Source: ABdhPJwGnXVXUILKrXAfewFirhtpRhIXK5XS+DCKbFvhIcqwHbGSilFzJuqqOYHKUJQ6oDXecRzVFg== X-Received: by 2002:a1c:6a01:0:b0:37f:1b18:6b17 with SMTP id f1-20020a1c6a01000000b0037f1b186b17mr8666071wmc.146.1650548146939; Thu, 21 Apr 2022 06:35:46 -0700 (PDT) Received: from localhost.localdomain (91-115-150-201.adsl.highway.telekom.at. [91.115.150.201]) by smtp.gmail.com with ESMTPSA id m7-20020adfe0c7000000b002060e7bbe49sm2817341wri.45.2022.04.21.06.35.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 06:35:46 -0700 (PDT) Message-ID: Subject: Re: autovacuum_freeze_max_age on append-only tables From: Laurenz Albe To: senor , "pgsql-general@lists.postgresql.org" Date: Thu, 21 Apr 2022 15:35:45 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-5.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2022-04-20 at 23:06 +0000, senor wrote: > I'm apparently needing an education on how this "to avoid wraparound" vacuum differs from > any other. I've seen it referenced as "more aggressive" but I'd like details. The difference is twofold, as far as I know: - it will not skip any pages just because it happens not to get a lock on them - it will refuse to die if the lock it holds on the table conflicts with a user lock Unless you are in the habit of taking strong locks on the table, you shouldn't notice a difference. Anti-wraparound VACUUM is a routine activity and does not interfere with DML, just like a normal VACUUM. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com