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 1nXYfM-0002l1-0u for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Mar 2022 01:23:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nXYfK-0007Hs-Po for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Mar 2022 01:22:58 +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 1nXYfK-0007Fo-GF for pgsql-hackers@lists.postgresql.org; Fri, 25 Mar 2022 01:22:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nXYfI-0004s7-Bx for pgsql-hackers@postgresql.org; Fri, 25 Mar 2022 01:22:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 22P1McF23170061; Thu, 24 Mar 2022 21:22:38 -0400 From: Tom Lane To: Robert Haas cc: Daniel Gustafsson , Kyotaro Horiguchi , deniel1495@mail.ru, Ibrar Ahmed , tejeswarm@hotmail.com, Andres Freund , hlinnaka , Masahiko Sawada , "pgsql-hackers@postgresql.org" , Daniel Wood Subject: Re: Corruption during WAL replay In-reply-to: References: <20220316.141432.2298656526174566963.horikyota.ntt@gmail.com> <20220318.102109.162855329039722212.horikyota.ntt@gmail.com> <3152696.1648159485@sss.pgh.pa.us> <3167047.1648169107@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Thu, 24 Mar 2022 21:08:23 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3170059.1648171358.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 24 Mar 2022 21:22:38 -0400 Message-ID: <3170060.1648171358@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Robert Haas writes: > I hate to say "no" because the evidence suggests that the answer might > be "yes" -- but it definitely isn't intending to change anything about > the shutdown sequence. It just introduces a mechanism to backends to > force the checkpointer to delay writing the checkpoint record. Wait a minute, I think we may be barking up the wrong tree. The three commits that serinus saw as new in its first failure were ce95c54376 Thu Mar 24 20:33:13 2022 UTC Fix pg_statio_all_tables view for= multiple TOAST indexes. = 7dac61402e Thu Mar 24 19:51:40 2022 UTC Remove unused module imports from= TAP tests = 412ad7a556 Thu Mar 24 18:52:28 2022 UTC Fix possible recovery trouble if = TRUNCATE overlaps a checkpoint. I failed to look closely at dragonet, but I now see that its first failure saw ce95c54376 Thu Mar 24 20:33:13 2022 UTC Fix pg_statio_all_tables view for= multiple TOAST indexes. = 7dac61402e Thu Mar 24 19:51:40 2022 UTC Remove unused module imports from= TAP tests serinus is 0-for-3 since then, and dragonet 0-for-4, so we can be pretty confident that the failure is repeatable for them. That means that the culprit must be ce95c54376 or 7dac61402e, not anything nearby such as 412ad7a556. It's *really* hard to see how the pg_statio_all_tables change could have affected this. So that leaves 7dac61402e, which did this to the test script that's failing: = use strict; use warnings; -use Config; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; Discuss. regards, tom lane