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.96) (envelope-from ) id 1wpbUb-001jvC-0j for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jul 2026 00:52:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wpbUY-00DVD2-2T for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jul 2026 00:52:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wpbUY-00DVCu-1Y for pgsql-hackers@lists.postgresql.org; Fri, 31 Jul 2026 00:52:50 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wpbUW-000000019lJ-0mS9 for pgsql-hackers@postgresql.org; Fri, 31 Jul 2026 00:52:49 +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 66V0qkX01714236; Thu, 30 Jul 2026 20:52:46 -0400 From: Tom Lane To: Masahiko Sawada cc: Amit Kapila , Srinath Reddy Sadipiralla , pgsql-hackers Subject: Re: Fix "unexpected logical decoding status change" error; from concurrent logical decoding activation In-reply-to: References: Comments: In-reply-to Masahiko Sawada message dated "Thu, 30 Jul 2026 14:48:39 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1714234.1785459166.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 30 Jul 2026 20:52:46 -0400 Message-ID: <1714235.1785459166@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Masahiko Sawada writes: > I've reproduced the issue on local and confirmed the root cause; two > background psql sessions in the TAP test run with ON_ERROR_STOP=3D1 and > got canceled by pg_cancel_backend(), so psql exited as soon as the > cancelation error arrived. I've attached the patch that fixes the > problem. I'm waiting for CI to check if the tests still pass on other > environments. The buildfarm looks like this has made 051_effective_wal_level.pl less stable, not more so. The failures all look like [18:37:44.952](0.014s) # injection_point 'logical-decoding-activation' is = reached [18:37:44.982](0.030s) ok 35 - the activation process aborted [18:37:44.982](0.001s) # die: ack Broken pipe: write( 13, '\\q # ' ) at /usr/share/perl5/vendor_perl/IPC/Run/IO.pm line 550. [18:37:44.982](0.000s) 1..35 ack Broken pipe: write( 13, '\\q ' ) at /usr/share/perl5/vendor_perl/IPC/Run/IO.pm line 550. # Postmaster PID for node "primary" is 81208 ### Stopping node "primary" using mode immediate regards, tom lane