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 1wZReW-0012ma-24 for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jun 2026 11:08:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wZReV-00Gz8L-0q for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Jun 2026 11:08:19 +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 1wZReU-00Gz85-2g for pgsql-hackers@lists.postgresql.org; Tue, 16 Jun 2026 11:08:18 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wZReT-00000000dCX-1xtM for pgsql-hackers@lists.postgresql.org; Tue, 16 Jun 2026 11:08:17 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2c40397e746so26337195ad.3 for ; Tue, 16 Jun 2026 04:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1781608096; cv=none; d=google.com; s=arc-20240605; b=H2F0Rq/vizu3etd4Pw/ONJcYQ1D7mMTzwrQqyCZsje/4awiykoi1m7Uhb6SsStBBjY p69mMWJV8MhXW/vowBf+ogsKzEXVXMKIsbAhYVlm5D9toJguoKDWUoY9WEsvYQSwU0W5 eJG5pkaVZyA8CnbJhFbQhogli0ECqAkw2RTXs2coJeRSWmE+CgoRxnE28LrVugp485Jn dSyhkQlp9oTR8JURiiPITg1nLEVoi1nYYbegBgd5Dbu0G72fiM6qRIQQgCYrCjNZliiS umAeJMF4Ms4nOKekHm4KJpjLEfu5+Lh1ovNb7YxBmI39yy3JjUNAxl0Ae+YALjCmHFxu hJOw== 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=+fO8gVNeJpyNtPtNJxpPNSYjaSQl+UFxXiC7Z+05Pig=; fh=KJxsXOasoo8hQ6quilmGXabsZiaCHI3f1cbaB2D8U8c=; b=Jl/xAtox25cwKXILEvyrFdvsyGmSGtIRX7SnolYQie/yWJp8RQsHBVtpq/w3OyrTvI HCivAfUMJFJ4TCXNtfhjqESxU8upcR1w9BgViIeef0JNANwO9mAKn/XM4QTSvYEDCQXf gTP0nh8zVZ3RE67+ZR4lcfI3ze78jimi4AwgddHismBgYFPqgcPmGJydBw7FYnZqTWWD 2Ud4E6/krAaQchFqV/6kwmz2TesvLHjYjWqnkdyg0+lwZyF0R2x+LGP/7tPNF8eLo/ZU m46dHAJ+faDxWiw2cnUzs2YN3GeCzmEptNt8on8jokzSTO4Wd21C+6brz/A1lHMpo9hh PPIQ==; 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=1781608096; x=1782212896; 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=+fO8gVNeJpyNtPtNJxpPNSYjaSQl+UFxXiC7Z+05Pig=; b=DMSu7C3SEu04O+1WXZQ7s9oTWmNibAT5QKxNb7N0IdQbHLysH+iok7uRK4FCygVfbw /jprySUhtnug5A6vnSoW+OjGTs4MOEoOfLUfVOtJAzGbhs3IvZv/sg95NrTekswIhycl a2e8N3Lvq2rwtQTIuUF/cs1QgjARBhAIqRYfkMAif7Dvtqtbe9/mAYXTQW6rL/WkrGc3 EO9rPFu2VxhnzkfTjdhjJ+cdXH8LVpjiJl/10gMxsljG2iwSaVEmZSy2LclkozWfHNFs PaSn6mymCk3vGQPNd9Mr93K5jK31rAtUheb+XEoWx3jsTNZ7bfar4r+mRIq55eVPICA1 Nr4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781608096; x=1782212896; 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=+fO8gVNeJpyNtPtNJxpPNSYjaSQl+UFxXiC7Z+05Pig=; b=hC0QB+yMl6Ih5pb6HxQYqbB5Jmk/tO65OBPQNbqP3qf4MCOPtRGjLSrcCjr/hMfNzF 1Kudk7DBg+tt3FK/Ukt9NB2vEmWbLuWyVfojuBXsngtqrLFYrMCuqScO6mP3VrDRwIbO 7rl7SQk66Zjd0cKBZlvFMndVPq9tm093V5xPzPB17C9NbKWkkoT8qdo0XjxkwTaf8ET8 2ks0+xfbkDGKedY8eBe6mzTQ/Ips9u+7c7yYYpQ3DuXX4Y4d5Q8DhD2dt9UWNIt4/qfE Q/7X72j8HVUSae4PvDXAcExuIAawwTszrpetWoIUZ82K1bfAkGsgG+Z3OrvdX1uh6LsK LRew== X-Forwarded-Encrypted: i=1; AFNElJ9CUQnj6wo3fPQEF9hTMTF/XaNAwo7bW8+ykHzXLSzNWVSgsQGyMet1TSVVd/KTDw7b0Wj1hK8yCHGyzudI@lists.postgresql.org X-Gm-Message-State: AOJu0YxroRYEwO72a/MWJ2nO340raWKW0N6Ix88Rb0In2TaXIZwSce2p JZNi7jYmX7MYqYdr2zqevwEa64hzMQmZclBPYITJ+soCUXolmvUAnToBu0HWBTXPRLw86wm+1EI sb23fNZc1MBEJRIAUcVZIFRmUaH9vJmk= X-Gm-Gg: Acq92OFOOek66DSGTCVCdxQD4mU1Nx7UOp4Jssz7nLuK9940QPMI9ETZJH4xtefhVC8 dqeD3nabRw0Mpg2a9NnED8qvwsSWXFotls/h2mYy6sdN2vLxB4j/oZ7hC9kdQDUNLwDhKqZLuot amQWCVeTiPMiBZLa9PlBdQvKkPwmj4D71bYSNYPkz2kdY8zgDtJRRAQfV3jFkeqNuT50YhGC8II t/OfLR1SkVfu57a6jyWskR/iTH84d6+7xHIAVTXWogbLLlsEmOTUNoNgNDM063uabkNRyoe4n5w v7Pbl3sgNB6vBkdhhXzcs+lg7t7nU71fr9CToDo/FwYn+yQwpJukMETP3Pt6aUP6gThuyzQjbnE BlodxKvE1jw== X-Received: by 2002:a17:903:19ee:b0:2c6:a772:7e43 with SMTP id d9443c01a7336-2c6a77280c3mr7961045ad.18.1781608095964; Tue, 16 Jun 2026 04:08:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Tue, 16 Jun 2026 16:38:03 +0530 X-Gm-Features: AVVi8CfgmxiyaQt_6mUuhsL3m8f_CUgEjIEBvfF8429TjlcxgwJB9lnmHdNLEhs Message-ID: Subject: Re: Support EXCEPT for TABLES IN SCHEMA publications To: Peter Smith 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 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 for > > this in docs if you and others feel that such explicit mention can > > avoid ambiguity around this. How about something like the following as > > 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 the > > exclusion." > > > > OK. The explanatory text LGTM. > > What's the next step? Should I create a new thread/patch to deal with thi= s? > WFM. --=20 With Regards, Amit Kapila.