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 1x4uNY-007UcF-25 for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 06:04:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x4uNX-00CGRP-0y for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2026 06:04:51 +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 1x4uNW-00CGRH-3D for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2026 06:04:51 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x4uNU-000000055Dd-3qWP for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2026 06:04:50 +0000 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-cc4c7fab7b6so573540a12.0 for ; Thu, 10 Sep 2026 23:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789106688; x=1789711488; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=LptnnF816ZqcbpZLxtKIi3htk6x/mPOTHCCvAHLV+Sg=; b=XnyiAjIftBPHqMCOicJhVHqajmTcFQg+W6VvxH+b7T6/O9H+gsZ7IkHtZEtp9ii5Rg 8Zo3SMlaTHxQyt0MrjcA1KoQr0wDynrMewLH8LwvP8/M8uY1dMU+iKYBp8DTQhn0NndY csgB5xJ6voF3kX03vnqQHsAKTmWJPPLS73B0Xg/f9JkX4DC+ENSQAQn0xNsUcqe4YMUA KJRtHookpLDmpUQjJ2AiG9oyP0adlijtvH1YR90lb2n+rXjuTrRHJLhHfmDgDfxqHlI4 TLupWpZPykWH2eIZGBkhI9EAnxUnWZ2YfVpgBiGEPlUZB/9NzGF/m03jVTfmpTl23kbG p9lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789106688; x=1789711488; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=LptnnF816ZqcbpZLxtKIi3htk6x/mPOTHCCvAHLV+Sg=; b=jF3mxjEc9Cw1645DKpL03w8PaXZHAd5VWCz02wUVlhW9xt3gJiLVIIqpk5eyNIAu4u IRx0KkDEPwGMQyHRDcV/ZoszMlBSy4YaocyzjWWLaeLNkIpoQ63RynNkoUU7N2M14YCE vA6wJiHVwlujJ9P9aJLdu6fYX4KOt7gSbnNrginHIaVcTQJFEC+OhlhQaY3IT1M6fxTB t23t/mRBm3jB563oHzXYhIyGiq/dyEKGpR/fYgOz/JV7WG8nTaelEvm8iVgtDb9jh/4d 2uSPeC33yzAsFrXB/5eiPGYfetPyUg3TL5ap1EV9dRWOCUe6s33Ua3uTHGVYCPRfULfO MaTw== X-Forwarded-Encrypted: i=1; AKwUvBwxB5xNBQwe90Eec3iMYrNkttZXbIyAjctxoebVfzYDqRQvd1Y8AiKHqKsxMZp4FB/dWh6wPCieA6pU8Ty8@lists.postgresql.org X-Gm-Message-State: AFuF++kUKWAYhjQGaUb5Xwq3ax+TWPc0BsFulOMZLxLT8X0a83six5Kl /BPoff4goNyB7fThJo20B1yHHW7vlsOlo4FbDEB1K8JHxzwMxey7xfLy X-Gm-Gg: AYBFou1ARu/YX8Rv5jOGh5vjt+8MO81RYu600kkYww1OXPvht40oOphMrVuuJYMaGnN N3hjlX6BhKKOSpwEX7pV7P3obKjRWHjnzgOFBlMP0daynynxQHI96BJ7VwEAj1OFq1s6r6CLQ14 bbDDwQZb1x14VEWAccRdj7O6uwM54m0Y/jtbr37FXDXnM2BUXmka837feamdc+o4l1pTApNUFZ9 lRdQssADT4ccPdHLmNQrfuucp4D/psJOAOk3tpzEPnuZcww9kzUVsOWV3R6/Z72EKk8u1F0rfSn ZIeeQvKUGKt9v77jr/C7NgoPbOHOEXf5yGZg46X9TIJRfx+9i8NYC0l/cou9VK1mHJE/ELw7oqN wWWMqC939xN8GVxEk00MSZ8sKoHPGZf8gTHmJbz4QAiMnX/XA08i6D3dDh+XDtR9OepRvXjj7WL Yh1lIJ8LxLQJGaG7fu7Qj46sFgW7EKrkSI26R1xwEF2gdYNLMlcEgMofshQjRF3LpFYIySrev/m QM3RLmO+lwP0EuuQI8= X-Received: by 2002:a17:90b:586f:b0:39b:66ee:a14 with SMTP id 98e67ed59e1d1-39d9c374d49mr3958219a91.25.1789106687976; Thu, 10 Sep 2026 23:04:47 -0700 (PDT) Received: from smtpclient.apple ([185.135.79.125]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-14365b78d59sm3508341c88.8.2026.09.10.23.04.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2026 23:04:47 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\)) Subject: Re: Review items for EXCEPT TABLE publication From: Chao Li In-Reply-To: Date: Fri, 11 Sep 2026 14:04:10 +0800 Cc: Amit Kapila , PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <99819E74-965E-4FB5-B474-762AC8FD04BB@gmail.com> References: To: vignesh C X-Mailer: Apple Mail (2.3864.700.51.1.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 11, 2026, at 12:03, vignesh C wrote: >=20 > On Thu, 10 Sept 2026 at 15:01, Amit Kapila = wrote: >>=20 >> On Thu, Sep 10, 2026 at 1:24=E2=80=AFPM Chao Li = wrote: >>>=20 >>>> On Sep 10, 2026, at 13:39, vignesh C wrote: >>>>=20 >>>> Finding #5: SET UNLOGGED on an excluded table produces an = unrestorable >>>> catalog state >>>>=20 >>>=20 >>> For v1-0005, the code change itself looks good to me. >>>=20 >>> However, I have some concern about the design. Since a table in the = EXCEPT list is not published anyway, do we really need to reject SET = UNLOGGED? Would it make more sense to remove the table from the EXCEPT = list and emit a NOTICE to inform the user? >>>=20 >>=20 >> I think removing the publication membership during another DDL will >> unnecessarily widen the scope of publication memberships. For = example, >> consider, later one does, ALTER TABLE t SET LOGGED emits nothing, and >> t is now published by p. >>=20 >> This is the damaging one and NOTICE in the previous message doesn't >> prevent it. Either the subscriber lacks t, in which case apply fails >> and the whole subscription >> stalls, or it has t, in which case data the user deliberately = excluded >> starts flowing. Both are triggered by a local DDL statement with no >> indication that replication scope just widened. >>=20 >> Also, it would be inconsistent with the INCLUDED case where we are >> giving ERROR. I feel giving ERROR is the right thing to do here, so >> that users can explicitly remove it from EXCEPT list and then later = if >> She wants to make table LOGGED again, She can execute following = steps: >> BEGIN; >> ALTER TABLE t SET LOGGED; >> ALTER PUBLICATION p SET ALL TABLES EXCEPT (TABLE t, ...); >> COMMIT; >=20 > @Chao Li What do you think about proceeding this way, to keep the > behavior simple and consistent with table publications? > That is, return an ERROR when changing an EXCEPT-listed table to > UNLOGGED, similar to the behavior for INCLUDED tables, and require the > user to explicitly remove the table from the EXCEPT list first and > then change it to UNLOGGED. >=20 > Regards, > Vignesh I am fine with that. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/