Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xBfCi-00000003JmV-49rp for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Sep 2026 21:17:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xBfCh-0000000GZjw-0opy for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Sep 2026 21:17:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xBfCg-0000000GZjn-3oAZ for pgsql-hackers@lists.postgresql.org; Tue, 29 Sep 2026 21:17:34 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xBfCe-00000001zUE-23cW for pgsql-hackers@lists.postgresql.org; Tue, 29 Sep 2026 21:17:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68TLHJgE705014; Tue, 29 Sep 2026 17:17:19 -0400 From: Tom Lane To: Alexander Lakhin cc: Bingshuai Li , "alvherre@kurilemu.de" , "pgsql-hackers@lists.postgresql.org" , "mark.dilger@enterprisedb.com" , Amit Kapila , Masahiko Sawada , Andrey Rachitskiy , "a.kozhemyakin@postgrespro.ru" Subject: Re: Bug in logical decoding with DDL and subtransactions In-reply-to: References: <694006.1790706690@sss.pgh.pa.us> Comments: In-reply-to Alexander Lakhin message dated "Wed, 30 Sep 2026 00:00:00 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <705012.1790716639.1@sss.pgh.pa.us> Date: Tue, 29 Sep 2026 17:17:19 -0400 Message-ID: <705013.1790716639@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Lakhin writes: > 29.09.2026 21:31, Tom Lane wrote: >> Also, of late the test_decoding/sql/ddl.sql test has been failing >> often enough in the buildfarm to be quite annoying. So I'd like to >> see this fixed sooner not later. (It's not very clear to me why >> we are suddenly able to see this old bug in the regression tests. >> The part of ddl.sql that's crashing hasn't changed in years, but >> BF member "prion" has failed multiple times in the past two weeks. >> Do we have a theory about that that's better than hand-wavy >> "some change in timing"?) > Besides prion, skink managed to trigger that assert too: [1]. It didn't run > tests from 2026-09-08 to 2026-09-25 [2], and never failed this test before, > so I guess the change which affected the test was on Sep 15: a4b26b8f7 > (the very first prion's failure includes this commit [3]). I doubt that theory, because a4b26b8f7 was "Revert UPDATE/DELETE FOR PORTION OF", so to suppose that it caused this failure you'd have to explain why we didn't see it before any of that went in. Assuming that there is an identifiable commit that triggered this, it must certainly be no later than 862092932 (the latest commit seen by prion's first failure of this sort). But it could plausibly have been anything within several days before that. ddl.sql itself wasn't touched for nearly a month before that, so I'm inclined to bet that the relevant change was somewhere in our code not in the test itself. Given that the problem is expensive to reproduce, I doubt that bisecting to identify this still-hypothetical commit is worth the trouble; I was just curious to know if anyone already understood the connection. Now, if it turns out that Bingshuai's patch doesn't make prion happy, then we'll need to dig deeper. regards, tom lane