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 1xVdd0-000000007vs-2p2C for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Nov 2026 23:39:19 +0000 Received: from localhost ([127.0.0.1]:37890 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xVdd0-00000006wlE-0dXI for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Nov 2026 23:39:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:35136) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xVdcz-00000006wl1-3JJA for pgsql-hackers@lists.postgresql.org; Mon, 23 Nov 2026 23:39:18 +0000 Received: from mail-vs1-xe30.google.com ([2607:f8b0:4864:20::e30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xVdcy-000000006pU-12qf for pgsql-hackers@lists.postgresql.org; Mon, 23 Nov 2026 23:39:18 +0000 Received: by mail-vs1-xe30.google.com with SMTP id ada2fe7eead31-7d2f53aa93eso147153137.0 for ; Mon, 23 Nov 2026 15:39:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795477153; x=1796081953; darn=lists.postgresql.org; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=RpEkmOSeKqsm7YF1xMzA20wT1QNUyhOQD/CovRnAD80=; b=RGoY0XT7JA3q13h+jmcKow9P+e1PadsABserg/Qh0/lDQ0dd2OJ9Y+VYJBJKsiSVyM ivS2Gi7hl/2ZTTYSuJXPwvjzpJXE3W6ZPLusrmW36Gz2JCr2jLNEH5AgMcdx1cVTu6Ee swenmgThBVPhFtxkBXGp6hFTKJgQdLY+UlX/ad3DhP0ifEaC5NxJMjCEM+6GxN4bKmGc zScB+DaX+7VlrC/wKMpIL1u2VLIBBIOIh5Gh3v7nxmVtBB/jEXbWUpNt+YX+z+Q5pjtK Awx4kZTLY7Y8iaC/du7GYNhUYnWYzaNkq+2or+96E5mAsBkqL5FC474GnWjY4p8LnX/l YyCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795477153; x=1796081953; h=mime-version:content-transfer-encoding:content-type:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RpEkmOSeKqsm7YF1xMzA20wT1QNUyhOQD/CovRnAD80=; b=T90RlvSsyTkMGOJ/1xqeIu3cG9EwL2lCCZYjwDh8jKdpVoO6Rp8EDBX425oIhOBcNG rKYOpqAxPqY7egYoD+aCrxap2WFK/u7hipnLi9HAwDLegKBwKB2kj2WZVVawdG8fcyJm CLE5aUc+Pe8ao4UowFbi8RsMe9BzRaFGJ/dWWbVY2mlG5bQqATYGrLd7moZK1zjqrCA8 qHKEVXUCEqaOfQS3XLks0fIkEZ/J18QveJF6rnIpKoA8OemHFsEimD3TB8S4fcWBzJK6 R4IWTj+yl+VWmd7aEitp4QrRgZaayDebY/M77FRRPKc9iINhUpojTq/M2A1iFLf2THzf YgkQ== X-Forwarded-Encrypted: i=1; AL+hErFm6Du2inLYYig1CcgbucCS5u5wDBmhMNMWL8jALcb1d2OUlROCx1psf/ethEaDVywxsI1r0BLGAej8eat+@lists.postgresql.org X-Gm-Message-State: APuU4Z8tB4zKxYTGvnWF7haRERSSMP76ZHE8824DglSaRbTHsnuhIz3R 8qK7e0IY14NVZNZyHj5j0OSQUU9miPmXNscXu6xEZNlho0qeu8ntMQer X-Gm-Gg: AZFdTZewMsLIQHs3+7+sXnrWe2+p59gfH872M/NQYs75eHHrBtJEMFMXaxeFn0eHkn9 39r+00XH6JNqGpb0wsbOIad97hu8goJL8BV8KY6pOCXPbf8mV4Z9XIeHow6Ydu0IPU57KGI1T6/ YMSPb4f9egDtEVntBI3Yps6K08b+aATtWBuOrNV7kLLxDCqRqmq3tbzVdix0vr6WL9kV8oKNZXu aQomhX7826Yk15ZCrXYecvKOLhJVz0dZzyaP9pC8HJ/Fq+fFNwGsjZtPTwRsQRcQZA2CyuO/CTe CvrVL+FTFPZGHErgw06/2yhrFp/+DkyJtXxZROudHSZq8OiZKI8raatakTSrMwU1fiH4e9CK1hG ZWAxV41pBvDJltKx/ZNycVs7OA5l/koZ44gAsQaAGtCHOOg3Myl9shhU+0uEmBOiy0GYcf54LyT uqThg9nQcxCXLmL2UBZTPsrGv02YDOyXcl8DpMgfSOXeo+3KHQtSGDupvfxUDJTDjR/uyejtqzA WkfS3FHzs8a5DY/FccwQUwmgof7IScLkNNoW6SHGCYRCOyQNO+sFedJdtthWOkvdcPZz2nLr25j jSuJK0p1mMfxux5fkymPirwym/4AfOK6bJZ0kzofIX/j2LrRelMET2vgpVXWGobYCTpLCYsfZGT 75z/4i62NW65T8jJURZySyNXtHJEvdDWFQzhW4gnunGv7bvhM09WILU4= X-Received: by 2002:a67:fd19:0:b0:7cc:1137:9d98 with SMTP id ada2fe7eead31-7d71e33eda1mr7220780137.0.1795477153252; Mon, 23 Nov 2026 15:39:13 -0800 (PST) Received: from 192.168.1.109 ([186.175.107.182]) by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-99e6e033aafsm13194630241.7.2026.11.23.15.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2026 15:39:12 -0800 (PST) From: Manu To: "alvherre@kurilemu.de" Cc: Rajesh Kumar Thandapani , Ayush Tiwari , Bingshuai Li , Zhijie Hou , "Hayato Kuroda (Fujitsu)" , Amit Kapila , Masahiko Sawada , Michael Paquier , Tom Lane , Alexander Lakhin , Mark Dilger , Andrey Rachitskiy , a.kozhemyakin@postgrespro.ru, pgsql-hackers@lists.postgresql.org Subject: Re: Bug in logical decoding with DDL and subtransactions Date: Mon, 23 Nov 2026 20:39:00 -0300 Message-ID: <179547714076.2402290.16126257887640793565@gmail.com> In-Reply-To: References: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Álvaro, On Mon, Nov 23, 2026 at 7:43 AM Álvaro Herrera wrote: > Hmm, so I'm inclined to do this in master only, as I don't think > tuplecid lists are very large generally. Agreed. In my tests a CREATE TABLE with 100 columns queues about 110 tuplecids, so a 10k list takes some 90 such tables in one transaction. Rajesh's v1 upthread passes the same tests as in October, on current master: - test_decoding passes. The new permutation fails on the cmin Assert if the loop over the subxacts is removed. - The same 60,000 random transactions decode identically to master, and the new Assert never fired. - Without asserts, 50k tuplecids followed by 10k DML-only aborts go from 1056 ms to 19.5 ms. One nit on its commit message: the empty-list return does not make pure DML transactions faster than today, since master already does nothing with an empty list. What it does is keep the new subxacts[] lookups from costing anything there. Regards, Manu