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 1p89Tt-0007WB-U7 for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Dec 2022 00:30:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p89Tq-0007PQ-Vo for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Dec 2022 00:30:38 +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 1p89Tq-0007Od-K3 for pgsql-hackers@lists.postgresql.org; Thu, 22 Dec 2022 00:30:38 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p89Tj-0004vk-QH for pgsql-hackers@lists.postgresql.org; Thu, 22 Dec 2022 00:30:37 +0000 Received: by mail-pl1-x636.google.com with SMTP id 4so515348plj.3 for ; Wed, 21 Dec 2022 16:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=ky26HxgaYhXCt4qjx8iHjkcf161z+QPo1edso5QyRDc=; b=53r5DQq9GWAwlo5aJkyZ7e9TIv2iGRLSypYdl010U6w0C5gmM7sTm7QGZUi82Scjda hTCP1Z9/PB2rywYsDmOublzU595C5HA++M6HjxZ0ulGb+YX6K4ZLK9oJL9PwwutgTlh+ PvV8MIfCAZYFsiuGNqtOWJvQiZ5ubLoi/sJVshHcZIWb78CsrVwnEAF4LIg+MZvM8Bg5 uDt8E7BQHAidYh4eCg5ulCT7GFWmKsqieu2HBLcxgxlvusigp/V7mm/vlrz09KaqXWsY ctGC30vVWUvV4VPWN9YhXmml4nYlxT/pCTtMaCY9boItcRxMNdlXnhTEUttryXu+ZzZt O0Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ky26HxgaYhXCt4qjx8iHjkcf161z+QPo1edso5QyRDc=; b=TTlHUo3z2WEThjgSft/J8E9rJ3sdvc87C5IHphHq24MHZdhrj4NXRmQT/EbOnvHLHg V3XDkuZr04OjatwJ4kuDoZzhAiMvTq1aOMMedeJNmcZ330i5HGaNY8sBmWMtnURxTbCx nm1zUhK4ZD017BLT5jc9NJUkc59S+WCmu0J6CAnllVsiQCYvJkphZIZwQQ5c9TPEcE23 6npPVIZwTjQRSRo/LcgTEzohQRFLBFtcdYr9dgZGC1hX7W7zAawwOUfQl/DJPFfgb+w+ EViieTBjZfq66p8ucpCdLbC3RfPGiEtUZp2vl6du4zqTWamvdoaWtRE7uJeBWA9vuzUO PN5g== X-Gm-Message-State: AFqh2kqeTr9+PQReisdGws6UDRd6QZl2bZi1lfg/orvg+ZmO53WBNkBw lBSPcbm2kBzUNGqBoP2PbQKgJw== X-Google-Smtp-Source: AMrXdXvCq6S4XlRXq4vlcAqG8wBleSPNfIu8VbpjUjfvLdJ7uLIDrJauWcqcGjzwYnPdTnHm4qbXrg== X-Received: by 2002:a17:902:c3cd:b0:191:d66:36fa with SMTP id j13-20020a170902c3cd00b001910d6636famr3873000plj.40.1671669030529; Wed, 21 Dec 2022 16:30:30 -0800 (PST) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id w6-20020a170902e88600b0017f8094a52asm12117553plg.29.2022.12.21.16.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 16:30:29 -0800 (PST) Message-ID: Subject: Re: New strategies for freezing, advancing relfrozenxid early From: Jeff Davis To: Peter Geoghegan Cc: Matthias van de Meent , John Naylor , Andres Freund , Justin Pryzby , PostgreSQL Hackers Date: Wed, 21 Dec 2022 16:30:28 -0800 In-Reply-To: References: <20221111034455.GE16809@telsasoft.com> <20221116052023.xg7pwgvx2t3hrgaj@awork3.anarazel.de> <20221206184255.dphhpvsyovqqwfdd@awork3.anarazel.de> <9fd17e87889845d74b8e3fdac7d2748a07950a92.camel@j-davis.com> <68df596638f60989cc72680d7029f0d51ca8cc19.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2022-12-20 at 21:26 -0800, Peter Geoghegan wrote: > When freeze_required is set to true, that means that lazy_scan_prune > literally has no choice -- it simply must freeze the page as > instructed by heap_prepare_freeze_tuple/FreezeMultiXactId. It's not > just a strong suggestion -- it's crucial that lazy_scan_prune freezes > the page as instructed. The confusing thing to me is perhaps just the name -- to me, "freeze_required" suggests that if it were set to true, it would cause freezing to happen. But as far as I can tell, it does not cause freezing to happen, it causes some other things to happen that are necessary when freezing happens (updating and using the right trackers). A minor point, no need to take action here. Perhaps rename the variable. I think 0001+0002 are about ready. --=20 Jeff Davis PostgreSQL Contributor Team - AWS