Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sTXMq-00HJah-A7 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jul 2024 01:52:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sTXMo-00EmAO-82 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jul 2024 01:52:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sTXMn-00EmAE-Qt for pgsql-hackers@lists.postgresql.org; Tue, 16 Jul 2024 01:52:33 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sTXMk-002GK0-Uj for pgsql-hackers@postgresql.org; Tue, 16 Jul 2024 01:52:32 +0000 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1fbda48631cso35076475ad.0 for ; Mon, 15 Jul 2024 18:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1721094750; x=1721699550; darn=postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=018ZruYWbritwE+F2iRzgXeg9Ixkwcdp1h1vf4KuU4k=; b=BmpnSTC8du6v6Ni55tbfJIXyfEEg5kGE9nwNGWx+rxnr6jTpXxUoxnO6JKaMR6PO8o QhXagtIzLi5HOWWxwosSeUw5pUUP8/llDcPn0Sv4MQVIXtQpespokHOKlZkhojS8bycd IKQq7g62CM8sISD4vmBZ2RhexCHoB9B79/GbY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721094750; x=1721699550; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=018ZruYWbritwE+F2iRzgXeg9Ixkwcdp1h1vf4KuU4k=; b=XxXjcQwp1Z04PzC137q++SUY/yTvjOPO2p6aONK0ITpFMemlzmQ6HrmmoTQBqBWWvW PBwfluPofxnuuWb5W3tffC8JjMqJej/287jHWGO5efenaZmiWnVViqu4lG/Ps37cnHwy n/WGCwSbFV+H62kii+wJvrPS0BU98pbxgkflBna4JwFHTUQNXnZaSeuAjnmIC3swI1fi ouQi+eUcE7D86DI4v+w1g7T3gIo7SWmfyzuXnTe7CvbQoKU3mEIVgf2JQxq0ZBpkquvt 5vEF6IVCWoqU9/2hzSxkuN0dIz3l9siU2Zz+itc4zd8qCLfaKyJ94gzeKqFKSsSAH5Sd MH7A== X-Forwarded-Encrypted: i=1; AJvYcCV9hWTRC5/wxHbbr3TxEzbwzAJLxDc9ZbddnMgFni7DhPvQJi8T78RNW0Iih2HEWzshr6wfmQd3XYOvtntmQX+g0AtJ/s1eBBaEC9c/ X-Gm-Message-State: AOJu0Yx19KFuo9Z4DbidQCsDypl/eP+hoJA3EnfRy30udmPwKoE6oh15 sFx0z5Vazkx8diRrTlhj/gBnSRpW6lR7w9a24PDSeaw/Ct0xZ1x7nObxC+fMHQ== X-Google-Smtp-Source: AGHT+IH1yBkavQsD77+rxFvRIGMcRJ37nQLcnOBkOfDhJ/ViWpYeUFOe2lXy/ssU2wlufRBG2RhWtg== X-Received: by 2002:a17:902:ea0a:b0:1fb:7654:4a40 with SMTP id d9443c01a7336-1fc3e6ab7b2mr5455545ad.14.1721094749465; Mon, 15 Jul 2024 18:52:29 -0700 (PDT) Received: from google.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fc0bbc2d6esm46887865ad.103.2024.07.15.18.52.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2024 18:52:29 -0700 (PDT) Date: Mon, 15 Jul 2024 18:52:26 -0700 From: Noah Misch To: Thomas Munro Cc: Melanie Plageman , vignesh C , Andres Freund , Pg Hackers , Heikki Linnakangas , Nazir Bilal Yavuz , Robert Haas , "Andrey M. Borodin" Subject: Re: Confine vacuum skip logic to lazy_scan_skip Message-ID: <20240716015226.60.nmisch@google.com> References: <20240306234733.nd4a636colxkgq2e@liskov> <20240707144944.58.nmisch@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jul 15, 2024 at 03:26:32PM +1200, Thomas Munro wrote: > On Mon, Jul 8, 2024 at 2:49 AM Noah Misch wrote: > > what is the scope of the review you seek? > > The patch "Refactor tidstore.c memory management." could definitely > use some review. That's reasonable. radixtree already forbids mutations concurrent with iteration, so there's no new concurrency hazard. One alternative is per_buffer_data big enough for MaxOffsetNumber, but that might thrash caches measurably. That patch is good to go apart from these trivialities: > - return &(iter->output); > + return &iter->output; This cosmetic change is orthogonal to the patch's mission. > - for (wordnum = 0; wordnum < page->header.nwords; wordnum++) > + for (int wordnum = 0; wordnum < page->header.nwords; wordnum++) Likewise.