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 1lRowj-0002Qv-4Y for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Apr 2021 04:28:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRowi-0004FV-39 for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Apr 2021 04:28:40 +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 1lRowh-0004FO-Sw for pgsql-hackers@lists.postgresql.org; Thu, 01 Apr 2021 04:28:39 +0000 Received: from [66.111.4.28] (helo=out4-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRowf-0001U6-Ft for pgsql-hackers@lists.postgresql.org; Thu, 01 Apr 2021 04:28:39 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id ABBCA5C00C1; Thu, 1 Apr 2021 00:28:25 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 01 Apr 2021 00:28:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=+jMLdlGWD0BYfsbnuKyRzrsMeNr qz9JNbyOI7ssEMTw=; b=OL0hRhSRgN4r5LjFgOVKy98di0zbQntiV8LO4xxTYGB TUEyqYd0/7ov8LT1su31bgKGJynnTQJ29GnM9GZ1nJM5w/aL6wxBJprjpIbXXoNR L/V/C3He9sgdTyLfSGtMocJeW8OLorJQZzuKjTIs4XHKghQIB06+cn6XAigFiDTm cnAqil8I4jxM79NqzhecMkgbPeGec2JZe7GmmCQX7NxZhQ0kMIZ1bJshFgR/8SIS c90DDTDgkaVomRiWdb0wSd7v+nbUxUIYO7+shdnQaKYR0Ffw/SA1zkuQAbO4/PX9 6duZqIYCeUO4s/p0yPkhV1c7TZfwIfoZEHq/+UoL3cw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=+jMLdl GWD0BYfsbnuKyRzrsMeNrqz9JNbyOI7ssEMTw=; b=ZxfkrS0WOiiM5rsFD2FZYe cyrRT7zVErRIrxXrCQvm3u7UdIPskGWQRAj/i3TwaI3aDCB4hWNog1KN4Lso9RTn r4h4Vol4GFT5G8CDiaFhjIojCF+QA6WRKr3qXx6CBi3j4NLgY3iCCbJ5y/aZBYMh XyfDbIyy9afS6buExHTmJhPFi9TSAQrPMJaTqvtpclOc1slHu1DZREMY0dqi+7Xe 5X6fxpoMGPFv4OaeQayaMMAkts2XQQvQaybdHkDuSdAtunAmgnFeWVHnKeIEKX/t s38gvdEL3q0eTJJXLTD/LTjvH5f108k80QrTtTCVE/iQKGVeSwCreQ6PZytJI64w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeifedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt jeenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeevfefgueegvdejfeejffekhfef teekledvgedvfeegfedujeeutdekheeigfelueenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 3767224005C; Thu, 1 Apr 2021 00:28:23 -0400 (EDT) Date: Thu, 1 Apr 2021 13:28:19 +0900 From: Michael Paquier To: Masahiko Sawada Cc: Arseny Sher , PostgreSQL Hackers Subject: Re: Flaky vacuum truncate test in reloptions.sql Message-ID: References: <87tuotr2hh.fsf@ars-thinkpad> <78aad736-c653-92fd-45ac-4482729459c6@postgrespro.ru> <87sg4ar9ar.fsf@ars-thinkpad> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bNcXmEXdr1IByOT/" Content-Disposition: inline In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.28 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --bNcXmEXdr1IByOT/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 01, 2021 at 12:52:21PM +0900, Masahiko Sawada wrote: > Just to be clear the context, I=E2=80=99m mentioning the following test c= ase: (Coming back a couple of emails later, where indeed I forgot about the business with lazy_check_needs_freeze() that could cause a page to be skipped even if DISABLE_PAGE_SKIPPING is used.) > What I meant is that without FREEZE option, there are two possible > cases where the table is not truncated (i.g., > pg_relation_size('reloptions_test') > 0 is true): the page got empty > by vacuum but is not truncated because of vacuum_truncate =3D false, and > the page could not be vacuumed (i.g., tuples remain in the page) > because the page is skipped due to conflict on cleanup lock on the > page. This test is intended to test the former case. I guess adding > FREEZE will prevent the latter case. What you are writing here makes sense to me. Looking at the test, it is designed to test vacuum_truncate, aka that the behavior we want to stress (your former case here) gets stressed all the time, so adding the options to avoid the latter case all the time is an improvement. And this, even if the latter case does not actually cause a diff and it has a small chance to happen in practice. It would be good to add a comment explaining why the options are added (aka just don't skip any pages). -- Michael --bNcXmEXdr1IByOT/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBlS+MACgkQnvQgOdby QH2dMg//Ror4HNLrybpGwqV7Q/h4R1pl8Pb6yA9SNkpmPC+qsnZyxBC/mS1OZYAN 5RRCn6llwO36DJjmIDmd8SQyoHFFr66eSM0AI4z0v9st1wOFjtjaNzzO92GMRHms bN1vqp0NVve+eKwtFb609FP8JmDqbfyKNbeoD7BSK67krNM+gwca+4Ddwt0zDzZW +oKYiM863jnPfsp4YxLvubtgwfy9tyIvQL72QobIqC+8fC6uDFYfxa9Clf2OED7g lmqK4zTUJETWsm30Ebdx/MHinTxpmJ77TQvVLcwTFjOv96IjUTrzmLsCtZUU6eQ6 RWf4H/wChHyVE97cGKJwD5fDUJxDx1AgtUciE4qKQaQVdVSgo1v9NJzToWSmbB3t Z2mdkKJWkZP78N/eOFHFf7l0KQoMfTjVOu+AXZdz57OGSPTKs5qmDWAQJHwvleiN Y0MMGYR3igq/vid7ldv/LBY/hYu4Jg7qUv/Ll5vyTOQH1CUdilT+yIBYp65WOw0p c0dDE7aB73IhTuwCBGOKTJy9di1BhER0NJa2b8PDD4NwmewU4GazMplqyJKhoTaj pHqDct4Udep4At8Z56RLipHkBXX3CAL4W58ogZS2XuAaiskcMT0eE0UpWF2bpH8x sCUKU6nfqyGlaudJ4P5/RhbYo0PoE/dEM2DL+v4pSrO8kiIwOGo= =nt/B -----END PGP SIGNATURE----- --bNcXmEXdr1IByOT/--