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 1pwlzJ-00055k-Qg for pgsql-hackers@arkaria.postgresql.org; Wed, 10 May 2023 15:44:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pwlzI-000877-Kr for pgsql-hackers@arkaria.postgresql.org; Wed, 10 May 2023 15:44:20 +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 1pwlzH-00086x-LU for pgsql-hackers@lists.postgresql.org; Wed, 10 May 2023 15:44:20 +0000 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pwlzB-001n7q-SQ for pgsql-hackers@postgresql.org; Wed, 10 May 2023 15:44:18 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id 947B32B06750; Wed, 10 May 2023 11:44:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 10 May 2023 11:44:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :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=fm3; t= 1683733450; x=1683740650; bh=s/jnjOWeqP35K09smTIPktxrOAuUemAmP2g cN52wQ6w=; b=LEVUC8OXIy9fbkbq6TVWMC52C3A+NEnkIQ2X+dFAxVl314pSLyf 35sDuzqWXuVQ2ARUz2KYqZOJBxfs7qDr1ex2irQccZM2r1lNb2f9td+nZcGQwstL HpEdCBrrNwMabjyMTHVj+Y8CVUEVsQRYYWHzbG66kLYvgO7VqvyCmfus46C3jfvC xf35wD7go27fBpKCyZvQ9GVgPT6OtVJbsHBbS0ptzZUFDw/03lJhC/s7TCoi3XCd py6JlqjxVS4PqCXazJ6gwtY0WaUMhP1sX0qfPiBB1KnViVDZys0aXVltHns3RZX0 ctYe91JZUO8VTx1Kooi29zyoLe4gnwgDglw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeegiedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeejleekteekteetgfet gfehvddvudduvdfgleevheevhffhueetffefleffueefjeenucffohhmrghinheptghirh hruhhsqdgtihdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvug gsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 May 2023 11:44:09 -0400 (EDT) Message-ID: Date: Wed, 10 May 2023 17:44:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: BUG: Postgres 14 + vacuum_defer_cleanup_age + FOR UPDATE + UPDATE Content-Language: en-US To: Andres Freund , Mark Dilger Cc: PostgreSQL Hackers References: <20230108002923.cyoser3ttmt63bfn@awork3.anarazel.de> <20230108030956.5q6ptk3boeisibjq@awork3.anarazel.de> <20230204105703.gt2j47vdn3s2gylt@alap3.anarazel.de> <20230206210205.uaaoe2l26fv256hs@awork3.anarazel.de> <20230309001558.b7shzvio645ebdta@awork3.anarazel.de> <20230311232226.fm442j4odhixy75p@awork3.anarazel.de> <20230311234121.qnlxuzijeqdxmzu2@awork3.anarazel.de> From: Peter Eisentraut In-Reply-To: <20230311234121.qnlxuzijeqdxmzu2@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12.03.23 00:41, Andres Freund wrote: > Hi, > > On 2023-03-11 15:34:55 -0800, Mark Dilger wrote: >>> On Mar 11, 2023, at 3:22 PM, Andres Freund wrote: >>> >>> Something like the attached. >> >> I like that your patch doesn't make the test longer. I assume you've already run the tests and that it works. > > I did check that, yes :). My process of writing perl is certainly, uh, > iterative. No way I would get anything close to working without testing it. > > CI now finished the tests as well: > https://cirrus-ci.com/build/6675457702100992 > > So I'll go ahead and push that. There is a small issue with this commit (a4f23f9b3c). In src/bin/pg_amcheck/t/004_verify_heapam.pl, there is code to detect whether the page layout matches expectations and if not it calls plan skip_all. This commit adds a test is(scalar @lp_off, $ROWCOUNT, "acquired row offsets"); *before* that skip_all call. This appears to be invalid. If the skip_all happens, you get a complaint like t/004_verify_heapam.pl (Wstat: 0 Tests: 1 Failed: 0) Parse errors: Bad plan. You planned 0 tests but ran 1. We could move the is() test after all the skip_all's. Any thoughts?