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 1nL6Yr-0003nA-Vv for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Feb 2022 16:56:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nL6Yq-0007z0-5E for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Feb 2022 16:56:48 +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 1nL6Yo-0007yr-E3 for pgsql-bugs@lists.postgresql.org; Fri, 18 Feb 2022 16:56:47 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nL6Yl-0006Bx-Aa for pgsql-bugs@lists.postgresql.org; Fri, 18 Feb 2022 16:56:45 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 699A232009E0; Fri, 18 Feb 2022 11:56:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 18 Feb 2022 11:56:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=BXik7rfvoMLFods2/3YnwYD/Y6aUPWNuly5HxK wUJLg=; b=vZEwBf/vkHpza+7ha/WWwvbwMvICM9PDnVD3ZxBkGaDQsgJ7RSjhPR SgXNEb2fjPThQQbnmlOi/em1C5npoCr2H5Exv1gF9jsMQ8HPsjA6NKBHF2Gu6ASE mdtYSPJu1FB5YA2F7gagG4WjYsHeg1oM3DicmYKa2H3/taMwXlOHSAXLbVCqLp2h gt0S9YznHFkUzNo0Hc/wLFie5TF7gnMy5r67omPH/LvnwdHDMtSgCAFJtsU7m0XE wJ81eCK3FVZIbIEu4gX5wXgLnMk4/ZcQKMXXfT2fZ+HmBNNmNCgA0fpPHNSQFDZx 6oThUkqVArHVdtsHoakEe2qs6PEpl2qA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=BXik7rfvoMLFods2/ 3YnwYD/Y6aUPWNuly5HxKwUJLg=; b=W6BP0D98pnH4HpxrlH1FQqAcQ+b1WtpSD Dz3AwmnO4nGRrp4jWQul1l2PYqL7Eg4FzCYCSH8LXWBTrJiYtJS0gkmX+69hAAcL wr7Qag4Ex7P3GR4RjTmS1T9nRuCTdWab3j3P/bKKimUnO2VQaCXoNYzrrM026dR+ /di4uhszf8eUy1By5S/dRsjAbvv2q9vcCkeYwDxVXLj//QbebomOljp7ePsUvl/3 PM35u1LHb2uiSLNT7JCHYAENktD0QXwlku+npQrl6NO9Wyu+hrIg6aeNGBmLOEyk CEI+ht12ibRxx9KpCCKkLUCG0/ofoXwhlijM1I/WbArUxSemydAFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkedtgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertd dttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgr rhgriigvlhdruggvqeenucggtffrrghtthgvrhhnpedukefhkeelueegveetheelffffje egleeuudelfeefuedtleffueejfffhueffudenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Feb 2022 11:56:39 -0500 (EST) Date: Fri, 18 Feb 2022 08:56:37 -0800 From: Andres Freund To: Daniel Shelepanov Cc: pgsql-bugs@lists.postgresql.org Subject: Re: pg_visibility's pg_check_visible() yields false positive when working in parallel with autovacuum Message-ID: <20220218165637.lp7ar3ana2xirsuc@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-02-18 00:09:48 +0300, Daniel Shelepanov wrote: > I've been examining a floating bug in pg_visibility. To reproduce it, you > have to: > > 1) apply a patch to pg_visibility's tests (you can find it attached) > > 2) run test-icx.sh (attached) from the root of the postgresql's source tree Could you try to minimize the script? A 300 line reproducer is quite long. And it looks like it won't even work in non postgres-pro tree. One thing to do would be to modify pg_visibility to elog(PANIC, "something") when it encounters corruption. Then you would have a chance of inspecting the state of the tuple/page in that moment. Greetings, Andres Freund