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 1wX11e-0030Qo-1m for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Jun 2026 18:18:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wX11d-0080ZI-1H for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Jun 2026 18:18:09 +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.96) (envelope-from ) id 1wX11d-0080Z9-0I for pgsql-bugs@lists.postgresql.org; Tue, 09 Jun 2026 18:18:09 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wX11a-00000002BwD-2y2d for pgsql-bugs@lists.postgresql.org; Tue, 09 Jun 2026 18:18:08 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 578961D0012E; Tue, 9 Jun 2026 14:18:05 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Tue, 09 Jun 2026 14:18:05 -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=1781029085; x= 1781115485; bh=3dmSYVuKt7uxpc86jkiGEJMFL0VudT8YF4H5YqnkMtg=; b=i 3bEtdhJYV7fxUDPvTWJO4LbVt8stpA2xkm6y4bKtUKYKNTn/371zVOrmgKm3Y/j7 o2LqrufIAtqjIJaMA0UEZpy/sznAw9Hm4Y+NdLI7egBDeBA6URiUmVnVFEujSRud OPBiK94i3/D4OVsK6i+E8/sxFxb/VQQ9DlHoSc2RqFqti+26Z5KDqQeMrLS6ZnZN p3/nlfdI+xMUWyieXXKQtEmah5ITZlGTJe1l2PXSRVAae5OsyssHEgj+m18s12kw /U2a/5qh3RZ9ix5gaZBW+8b0L3YXUxHTRul6AvSw0xPnPRCNnCsLRtZ3jegGchjO jc3klvPL05XOe4yRdbcQg== 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=1781029085; x=1781115485; bh=3 dmSYVuKt7uxpc86jkiGEJMFL0VudT8YF4H5YqnkMtg=; b=flFAn3coswtjjBl9O JUGckrroZiEH0C5gMpD4ml3B0f9QufCem7onC1p5a6UOMvUv+rUq8SvR8Fe4SgW4 BjVHB8RUj+C7eAz7K4SQyRdjvU7Eu8l8JsPBduQVJMcM99XY0VzcuFSet6spkeqf HtF5zHi4JIgTA4nVg89vox5sCfe4S/yCMr+5163SEE+7djYKth9g0itgk6VZdS43 eIqhfMVFsfCSe7MOUdCC4E/sDVhgkKFOmwi3etTFA4frWZgLN10tsrU+4Fi+LfcL UzzkFo/ZOkzDzAqSLHVsOT+CxdkgOxjOR707fnET7Hsp1g4JeJAzvFy/3YlZNXJe Rh47w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEI2CacfzjZZehd4c59F43JaMVURcEurOxlmcu1+Bf/6A1BVpu+rALYTivrMO56q+ WXR+XA/DGdapDI7txupvVz80seHWwY14iOashJOg27iLRVLc73yzRUjR72auBaVKQveyu7 Obl4NTAoLMT0i5P9VOwbGybSRBB7a0a/KkxY6bU+aTXOrcaIQe40D9wjk5lZP0OqxgUeT4 aOSC57sFwePHyadMFJmhHUTuRCr4eokL1TQp4f6wDhbZFms2LHrChS0RAqMSVHhs3AnLkg rxlIhI/dLcy2xIoeJGowBgpNsQWQXahkrTmj0ATEYx+ZjLBLLfVNJve8INDbkJoDGFJqO5 0GdQEjWKwCCkR1WHAhQCPMrf5xB1ms0IpmuuTT0ArmvBdeivKuhW0VSg1og0kaCUtng79V PfXmBD5ATOupQmiAkfLEcyLhKlnsLErPBa8hTPp8aEm5SFk+cUo0Yks4i4snvaI8EahkUr D5C0akTrMqB5aLFDVAL5ooZ7g2XIDyOt0QH5tzS4XQRbLb5hUiy5GXGtSTjHtDW9hnFxm4 gTUuDHbPjwZMpWdsXda0BcWySIFWjyXyJvSFAo4sfzJdTfNUuzbrKhya9YQHHBSOD2gnvH X4B1ArXlZxZUMWXSiTXFMKpPTs+fSn2PrRFwzJDvOChKL9xmeWvipe5MJihg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 9 Jun 2026 14:18:04 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1781029081; bh=t8O88lwp7ur8yDUASl6h2uAVcN7JHRu4KyORqBSm/zc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=u5IgxY3aYgPjKy1JEFrWs4cQjHtSxN6s34CcDAClggdZb1ghJ/tHFwPRkuDrl7hsh JXp2Z0ChFdLVG33E4hGhRnNcNjU3D+kKBBdmJMlpdV3NTcoyolYXByUaoP+VmX9NZQ nRl+rBDAeO7MbPrmENGXyLZFtcGnOYi3RUjbrsX1U8n6i1V9VRV+gmGOqKt/OzVbTj C77fiIL9YhRC2nsen1LDyU7Ztd82pwRv+102JFP0EyBMlCe2jl574Y4bYNSSitHS7k 715kosiTPOUp9fLRL8fr+/iTDj+OAyitjRMvo/RU6xt9jgatzaKSzGjwkc+luZ7GtF r5MD/FA4Ig9Og== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 58005B0065D; Tue, 09 Jun 2026 20:18:01 +0200 (CEST) Date: Tue, 9 Jun 2026 20:18:01 +0200 From: Alvaro Herrera To: "Zhijie Hou (Fujitsu)" Cc: Antonin Houska , Srinath Reddy Sadipiralla , "n.kalinin@postgrespro.ru" , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #19500: pgrepack logical decoding plugin can crash assert builds via SQL decoding API Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Jun-08, Alvaro Herrera wrote: > Hmm, yeah, that works for me, we can ditch the magic number then. I'm > considering something like the attached. I added the test case and > edited nearby comments. Will stare some more at it tomorrow ... Pushed, thanks everyone. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "¿Cómo puedes confiar en algo que pagas y que no ves, y no confiar en algo que te dan y te lo muestran?" (Germán Poo)