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 1wZ5Wu-000lQb-1t for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Jun 2026 11:31:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wZ5Wt-00Bebn-0z for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Jun 2026 11:30:59 +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 1wZ5Ws-00Bebf-2u for pgsql-hackers@lists.postgresql.org; Mon, 15 Jun 2026 11:30:59 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wZ5Wr-00000000T71-2WLu for pgsql-hackers@lists.postgresql.org; Mon, 15 Jun 2026 11:30:58 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5aa612bf6efso2823169e87.3 for ; Mon, 15 Jun 2026 04:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781523055; cv=none; d=google.com; s=arc-20240605; b=YagYssx7gD/9PN2nbfpuDk+eGM5yDSDaese92A5Pk6un0mNyCsMMNapkLwDUJvqC8N VB/BOkVeGc2pdN52o4HKjXsMleJ5wQMkQUvvVxu4KdjeoHWFOPBmNepqjS/6lvdbtfYe jT3D1cjjnVseCn8Ftfj2nohEMoi2EAvAXoJsBrxpXl248e/tWsFUrlI2Zsz9mEOkCiqv wu6WfQWEr2N7B0wq77hBvOfgdeQSLYNDPTbHBp2AfIxER8YC0aQTczIyZv+XmIq6n0yY 78Vk1Y7T0MrN8Q7D0vPs9QKYa3nU5T6J1Dy7N36cuZj4i0XVOXnIDDwS9bdAnzxtU7LE sw9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eOYdgf2sHWDdiNyibgEQTYZWBaAJK9QWSQitAIbmizA=; fh=DJswRPsF+onVZVLayf/x0gBaqGc0xXRB7kC2ZERN3i0=; b=c5/4POJZ/ChOwm7PN8mdq8gO4MvDRgXkO5WyKdOY4/8q7XrL3LTM93qqN1qQ/fu9fC PtORSOvdWl+9RrzKDcb2B8qd2wP92Ak4BQQATfQBzWohvmdCSzoN59MzsZyh6id998uC 3RKWeOC5Z7G2+UegerIoVqbXaO50HL4qbik8TX190BLpn3K/p/B3iu/0AsucrOv+zRjH NlMyqbtZmjTS3LBoicpluGYBdEQTqGwfAYF7d2tNjmgz4d18wAOIRDcz72R+/QXcY8w6 QAp8+0N+T7e/6ezEj9BxOIS6LWctgNUMrQsP5k4ab5qMQFRxEbtF7h69DP+MNi6E78lH 6+Yg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781523055; x=1782127855; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eOYdgf2sHWDdiNyibgEQTYZWBaAJK9QWSQitAIbmizA=; b=KYGssQzEweDgjZ8PfP6lYjm3dS7XVQRkjQJ9eLkYyqoqxsfxFoJ0VMYSYJAUvOI9BS Ru4G88AzOZ1N9zBwXVkjTL3w74+jOMAwdAY07+kZQKDYPthPR/F0u9Dpb7EbiRr8R6Qn 35aJohGL7zhTLHRkoSS85TPsfbqdz9kY4PMFgf410m0R0nOXXz8xhpRFZ86GbkbQ/e5I nOqaqpGMKCGY+LAHbMT/fVJg1t5WIpSgow+WmXdRnOEG+avsi2/N9d3g3JX81s558k1K FDU3EZHXA5xYqT/8nYvOssFatcLIvs7eFPVuOVvU6JZyFo2tbc960ZOQmkoja+21tE6K 66zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781523055; x=1782127855; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=eOYdgf2sHWDdiNyibgEQTYZWBaAJK9QWSQitAIbmizA=; b=ZfMDm3iMbdizJ0u2/mLIkzVEUI/JcL/zpc9ABfU5nDlaDS0FSelSYZe30qS1EGyMn6 sXbqRZMoVJIa9N7jPFbRbwFWga/r0FsBfMqFXJmriNSFrzqkZdlkazH2VgA3Wr1lMiEF Fx05dBYkxtDLgilFftk7a6AkqDLp2N758m/jH+JjAOnsTEm9QH2kBOfYBgnovkCOiOXS 6LguD7v9DCm42yagjwnNCOnfTMY0bFDIUa2EvNejeWjleopfoEqSMslajy9tsWmEFA28 gCx2ANsyAZubPRnEWAljE/IwWIEw3RwjrSMRWhn7tvA60gAB4tJqVRuA2kzaXT65V4x0 IyZg== X-Forwarded-Encrypted: i=1; AFNElJ8A82Uy8guU1KwW6Duop/L99+OzwY934h2DHmymJLGTXo7e9Xsj/1N3uMcEu5r1koJ0vu1i0h4+QXCgVuFu@lists.postgresql.org X-Gm-Message-State: AOJu0YxKMxJRkLRg+wdGq77x8mJVI/dMo7JEpST8uCNPlvsM8VV1YHZ0 3+ASiu+AZgqapftFSFjKpWA6ka3mCfB1dEkNxD0heqsPGIl28iKOgKIMixOeHmF8eaIg1vdRYjn 5lRPaLXnpxh+0j4hfkBCl/1uAmXqryQ== X-Gm-Gg: Acq92OFfSjqcLBgeRoazPaE/yaNiDOTX6Nl5xZGkRFMImpP8iW/iZSPnh6T2EUkbRNO 0zqJfgkuy1bvz1g39H70GP4XN9Six/sIo5fuvelJXYnYNananyySZ7yBzQfTm2sVegCs9my7ENX 6QaIGY3mayw+V5Gl6YDBYAERMP4CW7ftzaKKOuzWzwVGKNBRpGI0Y13elE76eNz3jJdUER4O6YG w0TEAZ3U5hnNkEI7zGUk7IJPwZhHIsW+95Q6E2yG5KqWLOQ5iNEbSuNtcb41el0fzXIup6rfXoY tigxDuSig8JujglhrLk= X-Received: by 2002:a05:6512:15a1:b0:5aa:106f:87bb with SMTP id 2adb3069b0e04-5ad30da28eemr2737887e87.3.1781523054786; Mon, 15 Jun 2026 04:30:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nisha Moond Date: Mon, 15 Jun 2026 17:00:42 +0530 X-Gm-Features: AVVi8Cd4QoOAfsVrTgUm0gPNs2pftoE3jmcmeAOCBJACusg14x-i1CFvh3GVy00 Message-ID: Subject: Re: Support EXCEPT for TABLES IN SCHEMA publications To: Amit Kapila Cc: Zsolt Parragi , pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jun 15, 2026 at 11:38=E2=80=AFAM Amit Kapila wrote: > > On Thu, Jun 11, 2026 at 2:24=E2=80=AFAM Zsolt Parragi wrote: > > > > > Let's wait for feedback from others. > > > > Yes, I think that's the best approach for this question. > > > > > Right, As also mentioned above, ALTER TABLE changes that affect > > > publication membership currently do not emit any notice or warning, s= o > > > I'm not sure we need one here either. > > > > My idea was to make this change both for existing cases and new cases > > in this patch, so it would be consistent, but that wasn't exactly > > clear in my previous email, sorry about that. Similarly to how cascade > > reports additional objects being dropped. > > > > IIUC, the objects here we are talking about are removed because of > their dependency type AUTO at least the existing case of 'drop table'. > So, I think the current behavior suggested by Nisha sounds correct and > consistent with the pre-existing 'drop table' case. Also, we display > such case at DEBUG2 level, see following code in dependency.c: > > if (extra->flags & (DEPFLAG_AUTO | > DEPFLAG_INTERNAL | > DEPFLAG_PARTITION | > DEPFLAG_EXTENSION)) > { > /* > * auto-cascades are reported at DEBUG2, not msglevel. We don't > * try to combine them with the regular message because the > * results are too confusing when client_min_messages and > * log_min_messages are different. > */ > ereport(DEBUG2, > (errmsg_internal("drop auto-cascades to %s", > > We can consider displaying such a message for schema cases, if not > already there. > The DROP TABLE case is handled automatically via dependency cascade, so we already get above DEBUG2 log. However, when a table is moved to a different schema, no such log is emitted because schema changes are outside the scope of dependency cascade processing. In v13, I added a DEBUG2 message when a table is removed from the exclusion list due to a schema change. -- Thanks, Nisha