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 1lREK9-0004mQ-Tl for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Mar 2021 13:22:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lREK8-0003gl-FF for pgsql-hackers@arkaria.postgresql.org; Tue, 30 Mar 2021 13:22:24 +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 1lREK8-0003ge-5n for pgsql-hackers@lists.postgresql.org; Tue, 30 Mar 2021 13:22:24 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lREK6-0006pI-70 for pgsql-hackers@lists.postgresql.org; Tue, 30 Mar 2021 13:22:23 +0000 Received: from [10.31.2.209] (unknown [195.178.200.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 3813721C60BD; Tue, 30 Mar 2021 16:22:20 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1617110540; bh=BPB1PSJcKK4jdksXm8p7F0ePlq0MjJMYqjifAZa3y0E=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=R6MsXWv6sxYrCt9hTr5DpUp6rMkTWAoizG8zBTsYLkQ+P37AvzWJh7XcjNXdyrwUf +cGgUbyRx6XiLxhKUvF9HwTLYm2gcZSkbZcX3P4VLcTNjSZl+7BfbcwJ8N9nEheGNP uC8YYPSOql0cXAv7M9nukAhCrKgY9PJ0YXZ+EFmo= Subject: Re: Flaky vacuum truncate test in reloptions.sql To: Michael Paquier Cc: PostgreSQL Hackers References: <87tuotr2hh.fsf@ars-thinkpad> From: Arseny Sher Message-ID: <78aad736-c653-92fd-45ac-4482729459c6@postgrespro.ru> Date: Tue, 30 Mar 2021 16:22:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/30/21 10:12 AM, Michael Paquier wrote: > Yep, this is the same problem as the one discussed for c2dc1a7, where > a concurrent checkpoint may cause a page to be skipped, breaking the > test. Indeed, Alexander Lakhin pointed me to that commit after I wrote the message. > Why not just using DISABLE_PAGE_SKIPPING instead here? I think this is not enough. DISABLE_PAGE_SKIPPING disables vm consulting (sets aggressive=true in the routine); however, if the page is locked and lazy_check_needs_freeze says there is nothing to freeze on it, we again don't look at its contents closely. -- cheers, arseny