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 1x4xAI-007WWI-2k for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 09:03:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4xAH-00DVx8-2l for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 09:03:21 +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 1x4xAH-00DVwx-0A for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2026 09:03:21 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x4xAF-000000056dR-0jRa for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2026 09:03:20 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id E6E327A00CD; Fri, 11 Sep 2026 05:03:17 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Fri, 11 Sep 2026 05:03:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm2; t=1789117397; x= 1789203797; bh=TjcwkPnkVDkCxz6NnXXPgl3leosnW3/IuyAXyPEiYSs=; b=a a1FA9Ep+7om+LkHzRtWd+sNjWTo2SyRYWmBhe40+X9s7Imlw1iLxvFGniTxIbbdn Fatbkcg9Dz7Ui+LQwuUuh3izZ32EYozFoYwyv5LnLhNZ1pJfG4Vs9JKFaiEtI8AZ r9vCe/JsgMzI2fT/F/Lpvw13n77ptsyhPrtFLAteLSsxzUblJ1IYUCo1V60PnSSM asWjRHKSkcf8P2Ij8NwbO97QZ2ylC9HbUtqCnuDsRKjr9Cgzk2CCOvF5bKAI0HrS 0th7xD2cqMqIE+XCD3TjiHLc1/TjRKz/TeI9jeSalNTeMCUVUlox60d+CBbkTIst TAwyC9PLlRRZ7mygX+sEg== 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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1789117397; x=1789203797; bh=T jcwkPnkVDkCxz6NnXXPgl3leosnW3/IuyAXyPEiYSs=; b=rr3W3Kn6W3sydcil2 zBPFaibkELnix3jFuaFcO1XnD7eOfU8PFBYMuiO3eQp7Lg4hD3xO39iPbVUnBbYM zFokerAv7GlEA1I4XTIfWIbOOYQXcaskVpctbGdy0xsHZxL5cLQu74jeaiDPiIxx jWdeK8EHAdBjoCOZw2s7e09CtRkTxmEKJUob3iNes6cLq0+ZjNtA0o0cE1dM/uk4 LKsHNW/y3CqrCK3PGMTo787R44OlBXKM4dHsU4sLvW51slaS1KsKq/ZyUmadUunJ rjpScKZjP3M9ararTCTprYGueELzylBLRZu5x+CKtgfbpurPXRnsZYftJS+9tE2b dJUmg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGkvvlYudc1qTJyt6/bmG8C1A3bjcqyVjeg1i8SaySdj1nlYpag/EOO0PLYv0XS7g MUiz8MnFFCXgGo8u0zQp8Nkqt/6mV0DM0lkWM93upq5Ee9r1DBoiHCCjBOtjiNLmiTe7EV Q3oYtpSvLE1AerYPXoy5E4LjDiKjkR8h40sMY35RZj0yCK5uQkASAx9DaNnwhJKVNAhlrR XHfaZKbwo9M/Dn4VTH6O3v4DUx5tls6SCnvTxmuq26crHH8fR7oE70VkN2wPSpirpRcVkq UfjBXIJ+sARmsak7RzhGM+gUkwv5cyhRvxvB6N0WHgUzG9Cgo7bRHveFwy1SzLeQUjlnP3 rIgon/wUGUmzvZ31/uYp9BLPayhGaQImS6oF7qDU5o/duU5lNAVvd0PC9XAQy4ijLKOWP6 5KzL+71UCDcHgYdLLIyWEhukNIwi8kJxpguSHyRxh76MIbVoz0pjb6uzfplsJGu322ovh8 T8FA+jSWJqNKnUSb4RqcRdl1ZwBU6U3NBSnvvx2BxBClwAfzYg7xcoTADujWWfhU9Fqwca SRM2f+Jm6ITob0EGge4uNcdyo1kDAvt08oVk3KAeDQkI0VVGfxLqSTdJIRXU7VyMyTLhLY z5fTtecWMJ9PU3ricZr0TIvt2D/8rW0asipieZOO4np9qdrkzUurRbo2bftw X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Sep 2026 05:03:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1789117394; bh=RhJEQNJP1JkvHPO2FGyZyZfTy/ZaIQSBTAWnns24nnM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=AuN5tom3wft/ndVFivAZIduFoUZMyWdLbEdyVTR8WzORN/o1VkPSVdOFSo94j4Qsn F/j0LK7gBipiMVYVmTfBRwVgjyQpCCcyM4GIQGqA78ESYZacGnAfUCuIuJZw12M8gP I8o+rXyuvTfkNkK6M2rwPc2WmJ5fLnqSk09DhgtoSRzRHqUG36pzitXNgSULoM5yg1 Dk9fjFIRhwc8lTlW41IAD26HsLRtSAn1bzlPQ+gYaOy30WXlzFwTV00g9w3bZi3g50 sZ7A4t5DYagwF/AFvL1WcXAYwgb/PxIOwufdnS4eyl4Csxm97KaBhzR3S/L2AeUmVn KFXwprf1w/UzA== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 97CAEB00039; Fri, 11 Sep 2026 11:03:14 +0200 (CEST) Date: Fri, 11 Sep 2026 11:03:14 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Noah Misch Cc: Andres Freund , Antonin Houska , pgsql-hackers@lists.postgresql.org, Mihail Nikalayeu Subject: Re: Race conditions in logical decoding Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260910234911.58.noahmisch@microsoft.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Sep-10, Noah Misch wrote: > On Fri, Aug 21, 2026 at 08:16:02PM +0200, Álvaro Herrera wrote: > > So, what do you think of the attached? > > I see $SUBJECT lost open item status because released versions have the same > defect. However, REPACK (CONCURRENTLY) increases the importance of $SUBJECT > and other logical replication data loss causes. In v18, one can recreate the > replica or run integrity checks before a cutover. REPACK (CONCURRENTLY) > automates the chain: one command starts replication, waits for consistency, > and deletes the last known good copy. > > If v19 ships without a fix for $SUBJECT, I think REPACK (CONCURRENTLY) docs > need to warn about the situation. How do you see it? I think this kind of bug makes logical decoding effectively unusable, because you can never predict when this bug is going to hit and therefore when you're going to silently lose data. I agree that REPACK (CONCURRENTLY) having automated the potential for data loss is severe. I doubt it'd make sense to release it with this bug. So my intention is to get it fixed before release. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/