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 1mNVJw-0005Z2-43 for pgsql-general@arkaria.postgresql.org; Tue, 07 Sep 2021 07:15:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mNVJv-0004ei-2H for pgsql-general@arkaria.postgresql.org; Tue, 07 Sep 2021 07:15:03 +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 1mNVJu-0004eZ-N5 for pgsql-general@lists.postgresql.org; Tue, 07 Sep 2021 07:15:02 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mNVJo-0001bY-67 for pgsql-general@lists.postgresql.org; Tue, 07 Sep 2021 07:15:01 +0000 Received: by mail-wm1-x331.google.com with SMTP id j17-20020a05600c1c1100b002e754875260so1377332wms.4 for ; Tue, 07 Sep 2021 00:14:54 -0700 (PDT) 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=OelB0uKs+TYAcsfc8FD74dQIU4XzF8sLZfJ8BexYDNM=; b=I3J1i6L9VhMnKz5JAVvvc+8V+O/GphYyFe7mBuYiEPi72r+xhhHFtQFnzVvwo/E58Y OmyyGqt7fnQG8ATKNKmrOWPhPkFp/VChRIXz0kYSZR2X9yn/SKSCu3mWqebEw5OOHYXN F7ZXCDXuEm3i4vBcbnt0Tf5kKwxJcp42yyJkxHcMJISUSOIAYiwsxFBo//SNGHGrRbGc XXRwKtLfXgwdJomJ3NGicrjet7P8r1vOQpyVzujdMiHS0XPXDt8A/JjnG79fg7sj2ple m0D2gsaMMqMpDSaIPW/Ze7KSpjXQDwkqeQJWTZQqiZtgsFJ7xMn7uZE/YbZqNFQ+bxHC v0IQ== 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=OelB0uKs+TYAcsfc8FD74dQIU4XzF8sLZfJ8BexYDNM=; b=qBKknnsN1O2JhM0Wyv/qtlrJBSbMSbBGDFroZbU2W/pJ2tdVFjFhbNCo81JoBmqxr2 hpEpPf3LjqvL/Z6j+F9aoLz1H02qX/WyO6G7dZLohIeQ1SgLmj2B8lRUs3a9N3jYwHDX TUHD+GQWJtnxdbupByhC6kZXyLSF8BJMdfzGWyG/3yhXDfbgE0p1I9hM8nQJrSyDbO0X 1Mqf4z1DsP4qJmeIdCQVRH3PfcTWyFKO20C2C2p5YivG56FOTcT4IqH1J1LgZcZmzWyR Qy1oimIQPMETGgZg+WM2X4oijOgpRpXqfjPK9QtR0DRWNjIxDmWpgmJCh75R0r777+rC DDug== X-Gm-Message-State: AOAM530nv21NBdRCBBFvUr18EIA8QCczwAFLDbE7xHQmCNgjLwENY0ub taBIN/wnNLyL8FjMFlSU+q4dZQ== X-Google-Smtp-Source: ABdhPJzlN6WqBom/EZHOEYo5V2pHWX1nb7vVNdh9qzCaJM3bSFuZjZgeqbAIJ1Git7Ia3A/Jt9ZDgA== X-Received: by 2002:a1c:4d02:: with SMTP id o2mr963038wmh.107.1630998893502; Tue, 07 Sep 2021 00:14:53 -0700 (PDT) Received: from localhost.localdomain (dynamic-e1vh9ob5vkptacfv0-pd01.res.v6.highway.a1.net. [2001:871:5c:821e:6e5d:aa3:efd6:494c]) by smtp.gmail.com with ESMTPSA id f20sm1478783wml.38.2021.09.07.00.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 00:14:53 -0700 (PDT) Message-ID: <04ecf271b82a367a6da59e9abcbf89021c2fd3d3.camel@cybertec.at> Subject: Re: Behavior change in PostgreSQL 14Beta3 or bug? From: Laurenz Albe To: Peter Geoghegan Cc: Tom Lane , "Daniel Westermann (DWE)" , "pgsql-generallists.postgresql.org" Date: Tue, 07 Sep 2021 09:14:52 +0200 In-Reply-To: References: <6fb7ffe9f584cb76e5c7aadc83d7562009224cb8.camel@cybertec.at> <3065647.1630943989@sss.pgh.pa.us> <2767fd7e5750d00fababa51a187b262e64d337da.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2021-09-06 at 12:11 -0700, Peter Geoghegan wrote: > On Mon, Sep 6, 2021 at 9:21 AM Laurenz Albe wrote: > > #define BYPASS_THRESHOLD_PAGES  0.02    /* i.e. 2% of rel_pages */ > > > > So up to an additional 2% of all pages can have the all-visible bit > > unset with "index_cleanup = auto". > > > > That is probably not worth worrying, right? > > I don't think it's worth worrying about. > > The bypass-index-vacuuming feature may have had a bit of a messaging > problem. It was something we usually talked about as being about > skipping index vacuuming, because that's what it actually does. > However, the feature isn't really about doing less work during VACUUM. > It's actually about doing *more* work during VACUUM -- more useful > work. Especially setting visibility map bits. But also freezing. Now > you can very aggressively tune VACUUM to do these things more often, > with no fear of that being way too expensive because of index > vacuuming that has only marginal value. That makes sense; thanks for the detailed explanation. Yours, Laurenz Albe