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 1x7A67-00000000A49-1Jin for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Sep 2026 11:16:11 +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 1x7A66-000000040Tm-1yPy for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Sep 2026 11:16:10 +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.98.2) (envelope-from ) id 1x7A65-000000040Td-3nJ8 for pgsql-hackers@lists.postgresql.org; Thu, 17 Sep 2026 11:16:10 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x7A64-000000007q3-0Xhp for pgsql-hackers@lists.postgresql.org; Thu, 17 Sep 2026 11:16:09 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 81F527A0027; Thu, 17 Sep 2026 07:16:06 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Thu, 17 Sep 2026 07:16:06 -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=fm3; t=1789643766; x= 1789730166; bh=11/S3DDZr1Ty9Ykclk/VjZyFW/GR4Kg1SVNZ0J8yZh8=; b=a ekZ9fNXRx/eDL5sT1BUhwJNK5uedE5dUOFeGy2tEOH/Kc1UmSf19ieMsxjmY1OiY 8Z/yPg86ARfRM7XCrvtQPhAE/Z0LoEORmJGATCAfqBBJfKJW4hi3bQqle5vd0i8t cnOgGrcy9lquspYth+HOOFiv8qLZVupvXqLmCxdQWU9+nxMFncT5ojkGoc3zVWud k5FJHR5LiOwD8wbN6oYA7uB79W4y534DNQeU5kIvqkf8ATmu0yVJJa1NjZO0tn6D MqI5uN9/dyKORdUnzDP+yCirsQQMw00Za0wzUzjSqHV0gHDvzwoB9ulsUuE5VDDZ kYO4LXbOVEr4fYrW7NrMA== 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=1789643766; x=1789730166; bh=1 1/S3DDZr1Ty9Ykclk/VjZyFW/GR4Kg1SVNZ0J8yZh8=; b=txUWRUT87gqNGQs4Y ybwjhorb9dKzDlEyBPMFBrB6XbDc1rgoDGR8Q3G5pgUfKdU1v3D4rPY2137hc7MU LQx4IytPoR5e9bP7v1zA1tuiEl3S9gE0i7SaGpmm4dwdkFsY9Olan8HHecaUjgMr lQKODeEqYKWLWt7rUelTuB7nKJfemHN7ud5hFEE/jC2mg5G/HOL5zR+07oFkLAFM 0eLp1ZZ+77UVfSzlH5sC7G6jiBoKUu+ECQBYx7xS2gb8x6rZTZ80ctiQJbwW3CHe KNiQXgZbNaoeQ3OXHjCPdy3b7nuqmry9vQ5k247VhZDiDjDTaNkpntak9T+a+dnV VoQeg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGdOFKTs3QSk47TV4eQryO8YWxykoq+KbryuYU6YM2NakS0pJX+kV2p4xB1XwNsZI gSEG7Z813jq7sQ00zl/x3jH+PEASRt4pAc3MuxbwQ0tAXvLsZkfuhJKUkoX3xD8UqCxlpA r16WfU8mYCPFEL+weDxsZJJI2LQ9p+GZHc1HKkAi8bScw5nUg7P7a7jjsOiW0S/lrTHM0U D8Gi0FmlZQHnWLL6ZQiB6ludMHx3N3Y3ZDX7CYO4iV2ZxRLa1iYP34EQbC5NGa8JPgNVZa laIiipGQxL7qtxjDQksmhWKdNJRaUBrzKblmwsPJZzVg47jTXwYx7aBJlfdnt8N9ugZBT+ JxWLzg+o8Ekn/HU+EKe4GkG9+rilx3Xt0jU3uoCb96pK78w9vsFNaRiZkT1K1+sli9NbyI UxVCeIJ6YfJ2pwo2OtOIE0XTWEWihp94SRklCVAH/b+A5fqWO6bm0r0J+ufvDnVBIaKAdL bLQSoraXAP3/Gr49+ft8y++OdSqgdwf2vvteovNbXTVCa9TSSqfz7RSQwsqEqeKkzOoHYc 8zQRJm41DTTOJdmUoE5iFNlwkMHibdrfX1IvzSz8pQcpo0Bhl9Q/yJU0Zo2MLxmt8r3oyj gPjSm2HPe8snHUFWut8GUvLH5bkNsMBT+r/QJSYLFfRrqu9d9kO4b8BW6l2g X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 17 Sep 2026 07:16:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1789643764; bh=dcaeHZBYMg4km8+BLteQLLBGLIzM21c6S4wvrGsF08E=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=9GyM9pDW5O0y/ze6s/NBa/vGVwl8VMhxgKCMygQ+zsDym68z2SB2PC4tL276RzhMn 5l48NB/DHmqjyWScXkPfYQrad6Z3ij+7USUZgTVbDAcmUE5cbZAn0enJUQjsC3TBAm r+GyZdHszd3s5MbfymxhfECnpvRxX5XABe0uk8LV7XDL/c0+ZgaYjnt+EV0i6/N3o9 4FSho5nRpAKdyuL56sMT4RsKv/8fm8FSeb1JCcIHl67w32Lv7Xrd+T5A2ajH0k6tSM vpUhmBaj3hCgQLynKeSfw08il0dEh4IQKuYWioznLZ4N1qE0HjvfMfNk7Gqom1pXy0 Pw8qhAeYtzkMg== Received: by ida.kurilemu.internal (Postfix, from userid 1000) id 3987FB00653; Thu, 17 Sep 2026 13:16:04 +0200 (CEST) Date: Thu, 17 Sep 2026 13:16:04 +0200 From: "alvherre@kurilemu.de" To: Bingshuai Li Cc: "pgsql-hackers@lists.postgresql.org" , "mark.dilger@enterprisedb.com" , Amit Kapila , Masahiko Sawada , Alexander Lakhin , Andrey Rachitskiy , "a.kozhemyakin@postgrespro.ru" Subject: Re: Bug in logical decoding with DDL and subtransactions 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-Sep-17, Bingshuai Li wrote: > With the buildfarm now red on HEAD and PostgreSQL 19 GA > approaching, could a committer please take a look at v4? The two > points where I would most appreciate judgement are unchanged from > my August 27 mail: the restart_lsn invariant (section 2 of the v4 > mail), and whether the O(N) abort-time cleanup is acceptable to > backpatch. I also believe this strengthens the case for tracking > BUG #19555 as a PostgreSQL 19 open item. What's the reason to consider this as a worse problem in 19 than in previous releases? In my mind it's pretty clear that this bug needs to be fixed in all stable branches. Moreover, I think the real deadline here is the next set of minors to be released in November, rather than the 19.0 release. The November minors would also include 19.1. > I'm happy to prepare a REL_19_STABLE version of the patch if that > would help. If the proposed patch has any conflicts when applied on any previous branches, then by all means please do provide backpatches as appropriate. However, if the same patch applies cleanly or only has trivial conflicts, then there's no need. (I see there's a trivial conflict in 18's test schedule files for instance, for which IMO you don't need to provide a patch. Didn't try further back.) The patch does change the layout of ReorderBufferChange, which is apparently an exported struct, so some analysis on whether that can break anything would also be useful. It might be innocuous, if there are no external users, but better make sure ... --- /tmp/ReorderBufferChange.unpatched 2026-09-17 13:09:09.517276936 +0200 +++ /tmp/ReorderBufferChange.patched 2026-09-17 13:09:35.505580268 +0200 @@ -37,27 +37,29 @@ CommandId command_id; /* 32 4 */ struct { RelFileLocator locator; /* 32 12 */ ItemPointerData tid __attribute__((__aligned__(2))); /* 44 6 */ /* XXX 2 bytes hole, try to pack */ CommandId cmin; /* 52 4 */ CommandId cmax; /* 56 4 */ CommandId combocid; /* 60 4 */ - } __attribute__((__aligned__(4))) tuplecid __attribute__((__aligned__(4))); /* 32 32 */ + /* --- cacheline 1 boundary (64 bytes) --- */ + TransactionId subxid; /* 64 4 */ + } __attribute__((__aligned__(4))) tuplecid __attribute__((__aligned__(4))); /* 32 36 */ struct { uint32 ninvalidations; /* 32 4 */ /* XXX 4 bytes hole, try to pack */ SharedInvalidationMessage * invalidations; /* 40 8 */ } inval; /* 32 16 */ - } data __attribute__((__aligned__(8))); /* 32 32 */ - /* --- cacheline 1 boundary (64 bytes) --- */ - dlist_node node; /* 64 16 */ + } data __attribute__((__aligned__(8))); /* 32 40 */ + /* --- cacheline 1 boundary (64 bytes) was 8 bytes ago --- */ + dlist_node node; /* 72 16 */ - /* size: 80, cachelines: 2, members: 6 */ - /* sum members: 70, holes: 2, sum holes: 10 */ + /* size: 88, cachelines: 2, members: 6 */ + /* sum members: 78, holes: 2, sum holes: 10 */ /* forced alignments: 1, forced holes: 1, sum forced holes: 6 */ - /* last cacheline: 16 bytes */ + /* last cacheline: 24 bytes */ } __attribute__((__aligned__(8))); -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Debido a que la velocidad de la luz es mucho mayor que la del sonido, algunas personas nos parecen brillantes un minuto antes de escuchar las pelotudeces que dicen." (Roberto Fontanarrosa)