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 1xBvVH-00000003Sbe-49wo for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Sep 2026 14:41:52 +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 1xBvVG-00000002tvq-2Wb7 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Sep 2026 14:41:50 +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.98.2) (envelope-from ) id 1xBvVG-00000002tvi-14Aw for pgsql-hackers@lists.postgresql.org; Wed, 30 Sep 2026 14:41:50 +0000 Received: from mail-wm2-x10.google.com ([2a00:1450:4864:31::10]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xBvVD-000000027GL-3GkU for pgsql-hackers@lists.postgresql.org; Wed, 30 Sep 2026 14:41:49 +0000 Received: by mail-wm2-x10.google.com with SMTP id 5b1f17b1804b1-49cd5462b69so30824795e9.1 for ; Wed, 30 Sep 2026 07:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1790779306; x=1791384106; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:content-type:mime-version :comments:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to:content-type; bh=IUyHyHUQOvxYMRfsr2U4io9+pjuMiufyuHqueciJlfY=; b=la0hh53WozCcfQLpI0hSJIBQgcuBs/wcy0W5YCLjZcdKbWAFnv2zHGiCMohb08pCAg usZKKPZUYRsOkGwjKHGErUfwKwSkUvxQedPF8ygugNZxSvnhBCaET/GXtkABRYIfDrxl 5IEI/Sm6r9a7M4HB3AlYHyt/d6cBzOb8VAJdRPGFDvP0jEykIDusMEWq6fot3gXvyWO/ Klsl4XLZi1OO6DsMZrd3QYR8KfDxKysVwMAg6jSREE2kSSox+Jruu2WNBXaTRf34moe9 NFks3zsypoQtILHO34k1jHvoSE5U4Q3PYUHQkT8A6q9CETb58iz60E6cThG+gn0nv37j UxCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790779306; x=1791384106; h=message-id:date:content-transfer-encoding:content-type:mime-version :comments:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=IUyHyHUQOvxYMRfsr2U4io9+pjuMiufyuHqueciJlfY=; b=ZMAI4VjmI7R9azD46NMmBGNwloxQylN4rcEIugFqVPbDWrjSiq0ZGdzcGueJS3UlSH VfDdyXO1eumvLZQMxQV8xBp7R1LbUKgfRGeQtdDvoI2uf/4mnqFAPg2Tw450rJXiM3F+ aASX/GrKpXe+WUbU8b3ZXz7daN0nJEneZc4/FNnmbm/aDJlO3dM45I5IF/+LaJb1mDrE jZaI7Q1NJzI0wKrmj+eIJuGBvxyQitLGpYnNM9lZB6VXR9zvymi/V72ZDIB4EjVtVwD/ Ce8rbw+Zer1nng9+NoyySYVoouXZh93B1rPc7EhbFDnQISAddAjY2bbKhKtJuit/5BeT cVtA== X-Forwarded-Encrypted: i=1; AKwUvByzS6Lj3rEjqG/mB0RcTwbACFQnzOzvXpVWQ75jEa41XOlq78ma/ERgaDderUJ2K1C/eSKXIdHTLklW+0QQ@lists.postgresql.org X-Gm-Message-State: AFuF++kFHD+4zIGuDFycC2wT89GVY4vG28Oq2FclmTXvFGcVXeap2Rbv D0+FwroRBlFWLepJiT+n9TBHBcKLE+L2JwvqPJO7tfDUdcpZgo8A2x3kg9iKZ1uqYqo= X-Gm-Gg: AYBFou1EmcX6X7vsTM4C7AZFSXJXieWYbq4J2aTCVJWy/xyhtgDvGCS+nBrqE742omO BMC4Xe32lJlqjCMPvftZwSXiZgrwvJz9si4WVXogjwn5CQR13294cagNKhJMwqe4TXtk1RwMZSV ZpsS2ePqWuYhDkYZR23Zc28PeEjW3WXPo3AltJZa6Orz6/+zEatKUp3usnDwGe76Sn80FKdb7iP Lk25xDbX6frV9XPRULeI6agH9XXPGGo350B2CpAvFAqgPXPxIp9Iec51NKC45TqiyOPIb0kXMZa hyu45cMLOyr6zX4vrE31bQAIBYRJ49oCmqe2Z8R0QuKPd+fjQ2lhJLGYsB5b4s3Cm1DG/m1tmPD jzkUrt46CQUAyEgd6ABvCbFL5eK7iHugA5YPnXcljnFlMR2DMGGBM46+qqoc7/PlAuOONE8Ea4b DkOGcAQjWFTz3INGh2YUndS1YudqTKZmrRxt8p7ol7TGSU4vz7NXAoEgls4/4QgGb3INDNIlVWn dlBKpLkq9TN4nFOmNgp X-Received: by 2002:a05:600c:c3cb:20b0:49f:ce78:3567 with SMTP id 5b1f17b1804b1-4a01b11eb84mr22219445e9.24.1790779306338; Wed, 30 Sep 2026 07:41:46 -0700 (PDT) Received: from localhost (109-81-170-16.rct.o2.cz. [109.81.170.16]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a01e65a4c9sm4086365e9.9.2026.09.30.07.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 07:41:45 -0700 (PDT) From: Antonin Houska To: alvherre@kurilemu.de cc: Radim Marek , PostgreSQL Hackers Subject: Re: REPACK (CONCURRENTLY) might keep dropped-column data In-reply-to: References: Comments: In-reply-to =?us-ascii?Q?=3D=3Futf-8=3FQ=3F=3DC3=3D81lvaro=3F=3D?= Herrera message dated "Wed, 30 Sep 2026 13:48:05 +0200." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 30 Sep 2026 16:41:45 +0200 Message-ID: <83138.1790779305@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =C3=81lvaro Herrera wrote: > Hello Radim, thanks for testing! >=20 > On 2026-Sep-30, Radim Marek wrote: >=20 > > Aha, so on my way to office I started thinking and got more silly ideas, > > and now can confirm this is more widespread than logical subscriber use > > case. >=20 > Oh, thanks for the simplified test case. We can fix this easily by > setting the column to null in the tuple to write out, as in the attached > patch. I thought of fixing this on the decoding worker side so that the dropped attribute values are not even written to the output file. However that would require one more forming of the tuple. > The adjust_toast_pointers() function should perhaps be renamed, > and the comment rewritten, since it's no longer just about toast ... > I didn't do that though. Maybe prepare_concurrent_update(), as it's called right before apply_concurrent_update()? BTW, I've noticed now that the 'relation' argument of adjust_toast_pointers= () isn't used anymore. Perhaps it was used before the tuple slots have been introduced into the function. --=20 Antonin Houska Web: https://www.cybertec-postgresql.com