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 1wf9Oh-005ISd-2M for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jul 2026 04:51:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wf9Og-00HTPB-1j for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Jul 2026 04:51:34 +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 1wf9Og-00HTOs-0Q for pgsql-hackers@lists.postgresql.org; Thu, 02 Jul 2026 04:51:34 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wf9Oe-00000001BWc-1h0C for pgsql-hackers@lists.postgresql.org; Thu, 02 Jul 2026 04:51:33 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-39b03d41976so13675231fa.3 for ; Wed, 01 Jul 2026 21:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782967891; cv=none; d=google.com; s=arc-20260327; b=R2iiSwhiqdaaDUphwSPtHtd3qssMSxfVaZxYrPr20WZtwDj3tWc+BLfvdRMpPv1Uwc Y+PPk7KQ1TmwhgpQIaAwH/unP90Lfpl0h07jncveBgHdCUo8XS4BOFTfRF/JuwukLAeK 3+vibhqYQfBf9duingwxcFZJseaOBKjc9BVK9Fnnvf61Xf9gor/wd05PMIZaZvHcvuiu RkLmkQx12KQfgDe8GQr2MwBvEJ3zLMkP1hUDNndETY2Uu2FozRt1rbRZTfm1uVlrgKZt C/wv49GdD5DqVFkLd0ZFE9oPXSr0sxT3DaLVbyBi+JKQ9DqOjkZs0mKCxRi6WKqZ5apc YOLg== 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=dW3EwnuGmWHGmlMB8gdq0S2OlWVNx0zVALWBXVwa7rs=; fh=b5gGZJxxfjdytVVvKWqXvXGCkrkGH0e1S2u5B62OlM4=; b=RS6Ns0BwbabssYFG2DVxAIOSEFFx0DJLrENoKv6CeFsnckXtRRx9HlGKfmF22xrf9G esAMwmnQSNSTgvOPImmOXPa8Ky8bv9EOYP++TI24ZY5wRNTPkIzNXJSRcU6hmw18guww eTjSKDlqVCt1k1Eil9alOm74Py3Ux8XPxhJm3ymw7RCHy5/IDA3x6pjlFqPyD12ZLaGM aUWBX58NK2mSVq0UqXqhWMV+i7qjTe9hJV7iaMCvBZ7RzF8MPx/kzijsLg6l0LIjNGKQ 9BIOX2E2wxxrCLHyHvngVF4x5GtLTZ6l+K37K9rj9JGnbTkPrPQRe/WZdCn1geuguOuj yiGQ==; 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=1782967891; x=1783572691; darn=lists.postgresql.org; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to:content-type; bh=dW3EwnuGmWHGmlMB8gdq0S2OlWVNx0zVALWBXVwa7rs=; b=jFy+TYpKxsYDTg7TFFZovRQl02PlWYNGRd2zUkeayecFG+RIijBuoNnAt99crtZ7au NXqbidNpsxLYoFOTGLdMoyNUXDnaT7HZG5h50NWDDXuPiOOX7GME7HstEvxBdOTZR0Xh OEY4Kj5qcZ91tuJHd+TsOxwzJaRbFY47sixR3A+ubZtcrBPdW0gwqItJQV9WIs2zfWM5 6VzNh8ds3AvGe7LBWF5/NKsTev3CbczXrR7O59HSZA2PjQXwbBUzt4GVDz/wTZg3N+zj qqAKsIcRKqcDQ9FICAAtyUkcVDzCxb3sNseUUHPtJWye4FtAfhK28xgKaP9WrIqkviyF 0uFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782967891; x=1783572691; h=content-transfer-encoding:content-type: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 :content-type; bh=dW3EwnuGmWHGmlMB8gdq0S2OlWVNx0zVALWBXVwa7rs=; b=SVubgmoZCQDR7VIibFjwfVZtIu+OtxDFW2c88OWzVGeydX2TdJeunxcVErog6xNDRM 2pmR7/P8/LiaMFRUo6SqKPyZPqQpftI3wNq6FNLF0EdXHq+ZOxr1bX7n+IdAjxePG8wE LhNNdPoukgA3y2oHcKcCyU6Yj8OWtvd8NKL5J2gd/Ig7DcT6AjjOVhYsWbl7sc1fHTKm jWM4dZAvHqTvNVKFg2fJewMQZaqZhOhbcNPYzgQuhsH6blfFLI1u1Co+8WlxzB42tUm6 FvqbKnpYPvAQ3htQU5UjacaeleCg2D5PRs9M4ZQg3kbD5/vwGAXKuGX/YMasU/KX+9un +U0Q== X-Forwarded-Encrypted: i=1; AHgh+RrJjcpX0WFs44xSRFZEMsYC/7Jq+j3jg4iKjb1Lh0hGkj2E0vZimVMlXCF6LKETHbA/Xx5QHSRVvsi2TvBW@lists.postgresql.org X-Gm-Message-State: AOJu0Yxgjq10R/2+wGvx6Inq8aWO6HGKZCOlvL747xf58A/mkyk8cL2/ LqWh5JLjn0g3UVdPlE+Ff2iUse2JfdrlYYVbxvCIwuzXjAG7gx5SbRdv/CNgQPPOhT79xqCOHTL /29481W28mQU9fAEqV0luON2Zpy2sCg== X-Gm-Gg: AfdE7cmq0xzU2sALBqhOQ6PMEteGvjet/8ztMLAIy4kLJHlnJFvIOntHyeLo39NJYMh 0Orn7bICjDNpvn8TuDBniC+9X+uQWW1MubZAm1XuudQikNobDLmR82apM3T/xrzQth3ol818Lm0 CRxrQz+Fa+6w3p3IMx8FNZOlZDWM4jNwJ13s6cUa2wjJYha6Rnv0bF68MGPEoAcBs1JTmzsNFWx AQ4bQ8L9Hj/2wHBEK4HHTuUamr15JC7obpaF1wDfAYgRqlMeWAZJjOiS8+3dDoH8lXQocVFe4V/ vt9muNiNgnxZfVQLEo7vzTSoiZw= X-Received: by 2002:a05:651c:b2a:b0:39b:37b9:50f4 with SMTP id 38308e7fff4ca-39b37b96576mr6467661fa.8.1782967890452; Wed, 01 Jul 2026 21:51:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nisha Moond Date: Thu, 2 Jul 2026 10:21:18 +0530 X-Gm-Features: AVVi8CdAVzcKNrhbW-SUhYutxZsR7TlBGH_FaOK-ghos4sB2fs-q81gm04C-FCU Message-ID: Subject: Re: Support EXCEPT for TABLES IN SCHEMA publications To: shveta malik Cc: Peter Smith , Amit Kapila , 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 Wed, Jul 1, 2026 at 3:46=E2=80=AFPM shveta malik wrote: > > On Wed, Jul 1, 2026 at 3:37=E2=80=AFPM Nisha Moond wrote: > > > > > > Besides the above comments, I found and fixed a few additional issues > > during further testing: > > 1) Fixed an issue where UPDATE/DELETE on an excluded table without > > replica identity was still blocked. e.g., > > > > postgres=3D# create publication pub_h2 for tables in schema s1 except (= table t1); > > postgres=3D# update s1.t1 set c1=3D3 where c1=3D1; > > ERROR: cannot update table "t1" because it does not have a replica > > identity and publishes updates > > HINT: To enable updating the table, set REPLICA IDENTITY using ALTER TA= BLE. > > > > Excluded tables should not be treated as published for update/delete ch= ecks. > > Nisha, this bug was introduced by your patch or does it exist in 'ALL > TABLES Except TABLE' too? > The same case for 'ALL TABLES Except Table' was already handled correctly as part of that feature (Ref -RelationBuildPublicationDesc()). The bug was only in my patch where I missed handling it earlier. -- Thanks, Nisha