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 1wZh6z-001Dp0-0K for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jun 2026 03:38:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wZh6x-0044xu-1f for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jun 2026 03:38:43 +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.96) (envelope-from ) id 1wZh6x-0044xl-0Z for pgsql-hackers@lists.postgresql.org; Wed, 17 Jun 2026 03:38:43 +0000 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wZh6u-00000000qHN-3YRu for pgsql-hackers@lists.postgresql.org; Wed, 17 Jun 2026 03:38:42 +0000 Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-517654b8e28so38298101cf.3 for ; Tue, 16 Jun 2026 20:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781667519; cv=none; d=google.com; s=arc-20240605; b=kFHl+IL68ZRMTCfX236GZxhGbFwaAVRIyCe05FgZQFVGLW+j0z/3/TCdws9hJ4ufdq qv6rFyAkc9IsQA3I+SrZl7FhVLDH0VLa/UT1PyWC/PdDqi3und/G5w2SEZp5qNYhIIa1 YbAIidhtjz2a1KmNGA6BcwIPne2sCaRHBQ65F9yPRQFYZo/rtqXWWo7qDrsAaC6rZufU bUxc6Shq8rrhJZeg57wGL+e8WJXlz4+/bTLLdpZTcIjZUrJwbLRucfNOg9HZBKcbwcGN 2txrYMRV1r/ep4jyk1zn8VvR0g3Ib+Q5KmsIyQFVedNlRdlYDhOyhWEqVcLf52JLY22B A0/A== 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=iKnWHgEET15+ICOtfXL085IbszLdoAChJ+py5G/HS9I=; fh=3EaxxpqexrU1tqVy0Lg5rmumiQbgfXcQ7sXAIVGC9wk=; b=AD5mFScsS/VpQyyh9EVnYxNdp+eFA/8o0l98rSyeePCC0Q8Qf0Y8dQmQ3lErkmgUmv PZmqKDCdPZt6LAMskCtuAA3I4goASSs11KT7EXaHMjclKyeOEn2bZYfd+ulqLVBT5F0p tqsY26iPB+/6mg0lbJTfkUdZLdHQ0L9EzFEF8ZAOktgxHsH76M88FyxBBZ1+IJ+cjgbB AzvJ+uj8U4pg6RjGBjh5Z2FkZoOmXl9leKTUe21SabKi1T8HF9dNf5VzTEJgeI5159kZ X5cP9P9k0KKp/So4iE0EuvNwzZW1/UkuhuFT6v2NgaxpW99RH4kZHEuu+9KpzfHLAe/B /oCw==; 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=1781667519; x=1782272319; 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=iKnWHgEET15+ICOtfXL085IbszLdoAChJ+py5G/HS9I=; b=bR78tbXFudPilNCUngYH0FNAdQl+zs1FYr0e+ydkgCcz8lPkqcIL6W6oTIAsPJv7Wo apVSPgP+Xs2ry9ugoNaU0Mroi2gnCDSWHIkOLVWbxkjnN8ojy4+ZKXBN4j7HnzN6RPmg TCak8lt4A/2RiybYiEzbenCYeCSmymnLvqHGpDFhOW1dLhVM9fbUlmg48x8XAnJ5qdQ4 om/fOUpTNh/mxItchch8dc1QPADkMx/sqyOyHcsKsp+K82jAqk5jasy/7pOW4giDqXbA aX+y8YqxMZHMppE7FkN2a+pi++CBaljwtgX7M/EvH6Jog2bi+q1DfSKdFeLqzC/kg8vz 6PDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781667519; x=1782272319; 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=iKnWHgEET15+ICOtfXL085IbszLdoAChJ+py5G/HS9I=; b=INUsAhvj+anUEflOc+077GI7SgUbpdAsDkTHJUVqydY8QSm/7x9XmfNBKMgvZPrGQA 24DsbximEuwJgLxYRGijOhsXpIuYoVq5Y0L1W+IHnnn4JGa+aNcwQYIt7Oum+kNAfLGR 7K1ruYF5CE95rvcvgKxTe1WRFHiNWq8CToO3ZTkOBDRsTzejZo3fx1Ns8rV541mI3Rtj IsRrzHVxeDRWk74jqH6w9ql2fH05x7pajHxm/OSocRqNrj9es4PubkqRM+QAuJLWJ4Pf 54yMtzp8y14koneIaXJaA71yYL6yCFw7/Y8f+W1YeOnYxkSfJGoxwHzKRKrJfw3wlVT4 jctA== X-Forwarded-Encrypted: i=1; AFNElJ/BhRkKXgPmmg/H9TIxKo/OMx7D2FdNbeBMgXwgh5lyi+3O10UPZU/d7/ZK7Jzpdiu4ry+9trxQ7GGeEvFq@lists.postgresql.org X-Gm-Message-State: AOJu0YwJ5DBqpEr+mSX4bogMeTr7isnSbKIuX6hAlXRJiNX9J/svDDdQ K5vZJRYa8Jd+7kM4VAGg7/ewz0iB9BYurAngBsm+r82xkI7JZYibhT5PLp0kGdZ1bPOYJ3oeFgH 1Kv42dGLaV1pdGu5H9SlQRGasEIeGecI= X-Gm-Gg: Acq92OES79bVwng70xOk4sAwpIL59JRC7AzDD93/xrcGA00MxGSmqqb0qONAgZZrLMA R3wqsaPcOPxoXLL4wc+eoGps8u4MJGEhj526UKdQkszqDNrFCHExnwBvkoAwduvra7QDGbAH3Ek uPEBKs2IjgUC0yb79/w8yEVWlJpGG7SsHUNAw2bDqpDGpD22JT6Fd5KwFSu3UGNAdaQbbhnblum bApHOO3bjpTRd6s+rW6zarB10mW0qB+MtwdeGhhP9+aW72WplnHB57lrT/k1zle9tZdZ6hB X-Received: by 2002:a05:622a:8d09:b0:517:a174:f419 with SMTP id d75a77b69052e-519a8cb9addmr34578401cf.19.1781667519090; Tue, 16 Jun 2026 20:38:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Wed, 17 Jun 2026 13:38:10 +1000 X-Gm-Features: AVVi8CdUTNqkDKpMpVcGI8PiqchRS_etF1bHLQ7aR5G1LYcwhGYZmZD1ehjAMvs Message-ID: Subject: Re: Support EXCEPT for TABLES IN SCHEMA publications To: Amit Kapila Cc: Nisha Moond , 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 Tue, Jun 16, 2026 at 9:08=E2=80=AFPM Amit Kapila wrote: > > On Tue, Jun 16, 2026 at 12:06=E2=80=AFPM Peter Smith wrote: > > > > On Tue, Jun 16, 2026 at 2:36=E2=80=AFPM Amit Kapila wrote: > > > > > > No, I don't think this is a bug for PG19 and the new behaviour for > > > PG20 is intentional and required because in this case, the EXCEPT > > > clause is schema-scoped, so once schema is changed, the table should > > > be removed from the exclusion list. OTOH, in PG19, the exclusion list > > > follows the table-level exclusion based on its OID as we can see in > > > the example provided by you. I think we can consider adding a line fo= r > > > this in docs if you and others feel that such explicit mention can > > > avoid ambiguity around this. How about something like the following a= s > > > a separate para in EXCEPT clause description: Once a table is > > > excluded, the exclusion applies to that table itself, regardless of > > > its name or schema. Renaming the table or moving it to another schema > > > with ALTER TABLE ... SET SCHEMA does not cancel th= e > > > exclusion." > > > > > > > OK. The explanatory text LGTM. > > > > What's the next step? Should I create a new thread/patch to deal with t= his? > > > > WFM. > Done. See new thread/patch [1]. =3D=3D=3D=3D=3D=3D [1] https://www.postgresql.org/message-id/flat/CAHut%2BPvQ5BqnawCQd6r1tqqd%= 2BiAJC-CuRY8wscuXSrpHGUzofA%40mail.gmail.com Kind Regards, Peter Smith. Fujitsu Australia