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 1wh2O1-0000jC-07 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2026 09:46:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wh1gp-005d5x-0g for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2026 09:02:03 +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 1wh1go-005d5o-2Y for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2026 09:02:02 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wh1gm-000000020Jp-3k5u for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2026 09:02:01 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2cad8076b01so49733835ad.2 for ; Tue, 07 Jul 2026 02:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1783414920; cv=none; d=google.com; s=arc-20260327; b=iHJD360pT/dFlCI7O8Fbk7FcLaJyGXLNpx55icZexiQHm6JLBtN+4Xo4noGyb134Z4 EYXirMZCzediheoCzK7eZWNL9vmq6WQcdRoO+HiIdYzSc9EOjo5EIvwU99k2uJSimiwJ hI52tyGs9GVtKN7qHZRoDxCziFCKQSklmQ2Fsdkl279Ccizw7ButVgIHV5L6R4xy4+Ev AvCzEGnLMM1UFVyTh9L4jHqVFbpmvOSwQ6Q5srHhIY+khq9h4ljTAu2FVNR2MweVlfC8 oX8yiXn2Rbp6JaJzvFvKfj4tti+Eya/Gje9zv4Kb4lkA5PLs9MNJy/9rzMaP7N/Y6jM6 y8+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bRIFLlT+sQceLIjDSK8cc9j9NPDU7p0YmbEA4Djg24w=; fh=wIRAngN7CxkSAewo/+WUbdbH09ZhF2pdJtDI2GiVz74=; b=efAwG6QM+DRO1K0NCpqhNbWHNRsMgX8LPzBZib+XNpiekawt7qLj2STPYZnABaj+jx tjfOV1sSgVf3DmTzWbjV+/4McklUy2qHb4+4NWYf+RmuVPp8Hx/n0uIAENkiiggb6sRq TGJXpeoWev1YwZozf8aiszN9elcaGn/NP0bu8VmnLh2cElN0aACrYjYGTMBBpYjNmvoj gHEEj9m3vtjVThs5mzoc9Syr2DCdlAQnUtQ7l4I416+UcU/lAhUKuE1PeSpZcJPTQBFQ b994SQdW4yyuPrE4kmxfB1gNJi153lJh8YwpsfF3U+cdlez6l0MakNTyNyZO9mI7TzYe rKBA==; 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=1783414920; x=1784019720; 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=bRIFLlT+sQceLIjDSK8cc9j9NPDU7p0YmbEA4Djg24w=; b=UHWka0XjNYCS3qDWwnEZ6BOcMs0LrWFAtBOVy3yOJ2ldnRxrsLcCqIUUmB6DW2VBM4 JRbUJKP9Ilts3r869OVnZvzdV2zqvW6PZBadXJEtD2ep48/u8ikYvg/zs57OsFXATZON m895jrEeXa5x+t3r9VNy6/SkJpvejya4BxFBouM1dzXUhyPCOPuHhdWqBoi6pd94cwaZ XxN9oLBnVFtNAmcKYo2PDwvQz9tfHlQo/iMihVkVM0QC+zYAy48RwaYtPBdVTKSwSDL4 chNLSLj2Y+6MWyJdw4YLHrcbU0ID2xI7f+cWdXAGpBKwFf2jzRqIH0EHYRmNnbJ6kZhr 3jkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783414920; x=1784019720; 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=bRIFLlT+sQceLIjDSK8cc9j9NPDU7p0YmbEA4Djg24w=; b=IWqyKpchfYwG1wRP/ZboiMUHilf4OclvzHGINSrh4CizdJc8xnYPUX7ksW6/vViWiD KPVG5PWmVWnjGT8LbAxraUarcgWz7jztle960Cc4qc1QPx9/Z3N2T95eSDmLLkSWl8hX 8BaZ2jyDZTCnNW4f+hj4viw/QCKcyYcVy5Ah0D+fgT+TSy4bZdYy5re9pKFU8KJCJs46 6JQ7felyVFCitOo1XA1+4rQ1phZgHCNBojOI676p0GbEo7lS9KYPT19diMaAJvhpX7bT F7nXeTQKOMZzGOm6S0IaHyZ3SLCZ3/kgDSqIlXC35drGa7dWVU/HLuf1zJNAk7dqMDuV 5u8w== X-Forwarded-Encrypted: i=1; AHgh+Rq+6JAhdNTKgP6ENeuVWOD6eby30TFjc6r6ia+CBzexdQ03xdCjxTKJ2tb5pTnfG0Z5iGgcdVUZ97dD1jKW@lists.postgresql.org X-Gm-Message-State: AOJu0YwCmLw9VQjttjF1euAfdyLFd8OKcUgSkenLVlI/T4WBlf1uw/lI g++ibbcWyWeHEeoB/F7TK6kdomrzGKcBGj+Qk6MDwQESsX+2hAQ/3fgtAT3yBw5PNsYzkM4apux WiKRpVjn5XBKEy7FMvtFYw2PIx6qBYj4= X-Gm-Gg: AfdE7cnx8eMbohJEkF9bYQSK1odnuyV4P9nvL8TdjlJhaZdbwl/5ooNUYiR5UEZ88yF 0WSv+CxFsLlAxEOwQfrmdT55w41btYlDLaaKiA3nkDU2Bebn05rm0PnRwVpkEr+WIcaw09pn5BO JKlapEfJ/faY/9HKpi/xzU+mJ5Srn68o44MEywCOn3WVncArPT+w5aJpCkNLlfdaCvqFsMYKOt/ uMODXGP4o1OHeNTs6t6x2u+QE/JVukopsTOuwGvrvSu6SQSXQ/YmGiP9iZCwucnqkEtrnQ2B9jU Au0i8FqBqj4pIo8S4f6ZPm9A5vsVX4JCEidiyqoIgEI= X-Received: by 2002:a05:6a21:3295:b0:3b3:e05:7fc4 with SMTP id adf61e73a8af0-3c08eede9e9mr4990690637.30.1783414919744; Tue, 07 Jul 2026 02:01:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: shveta malik Date: Tue, 7 Jul 2026 14:31:46 +0530 X-Gm-Features: AVVi8CcCQ6KnjeefFmudIEwf1XYZ-MMxz7qRGzSLJG7YVTcAmPjeWV0kMdVhdZ8 Message-ID: Subject: Re: Support EXCEPT for TABLES IN SCHEMA publications To: Nisha Moond Cc: Peter Smith , Amit Kapila , Zsolt Parragi , pgsql-hackers@lists.postgresql.org, shveta malik 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 Fri, Jul 3, 2026 at 10:15=E2=80=AFPM Nisha Moond wrote: > > > postgres=3D# alter publication pub2 add table t_part_p1; > ERROR: cannot add table "public.t_part_p1" to publication "pub2" > DETAIL: Partition ancestor "public.t_part" of table > "public.t_part_p1" is currently listed in the EXCEPT clause of the > publication. > HINT: Change EXCEPT list using ALTER PUBLICATION ... SET TABLES IN > SCHEMA ... EXCEPT. > ~~~ Thanks. Do you think we should restrict this case too? To me, this seems like another variation of the above where conflicting entries are given at the time of sub-creation itself. The root is excluded but parittion is included . postgres=3D# create publication pub1 for table s2.tab_part_1, tables in schema s2 except (table tab_root); CREATE PUBLICATION postgres=3D# \dRp+ Publication pub1 Owner | All tables | All sequences | Inserts | Updates | Deletes | Truncates | Generated columns | Via root | Description --------+------------+---------------+---------+---------+---------+-------= ----+-------------------+----------+------------- shveta | f | f | t | t | t | t | none | f | Tables: "s2.tab_part_1" Tables from schemas: "s2" Except tables: "s2.tab_root" thanks Shveta