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 1wRPtN-002KJl-39 for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2026 07:38:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wRPtL-000Y59-2u for pgsql-hackers@arkaria.postgresql.org; Mon, 25 May 2026 07:38:28 +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 1wRPtL-000Y50-22 for pgsql-hackers@lists.postgresql.org; Mon, 25 May 2026 07:38:28 +0000 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wRPtK-00000000fTs-4BUx for pgsql-hackers@lists.postgresql.org; Mon, 25 May 2026 07:38:27 +0000 Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-5102582e23eso73184421cf.1 for ; Mon, 25 May 2026 00:38:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779694706; cv=none; d=google.com; s=arc-20240605; b=J4qN7KrTIvwvp/rvgDiFsYJPfxwFVqUZ9plrhTOfbyeFcOCf/jD+nQyi7KO9XvZM4B eH/qo/O8es1s7GH9v+PyRW7VoWII6YVN0yG0E4UgJ1B422ry4Cf3nVpIkW1j0YSwdaok iT8pAi2LTXdWM8jELKlDKXcyyMoAWCwoUaXiRhLbsIKJMWAylY0bjbxnfuOfrDMKi3Em iZYB+73zXu35VPYfnN4uPrPxatlfr0fuvHynQhiapX5RnWnAp+K0qwLjcxWds9hFtXMY xSYvfakFDqBpQpAhDGoiOnOKBZG1VvJ1DmTViczYEKS74a8RALmRGjx5kPah7EPzJo0f cumg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=lrtSln6Ey4TVk76lKLEqQ7Z5cQQ2VLEGar5yQQ9vbOc=; fh=MewoAs7V7fMwW5f+EvePVKfsiO3vnJhYEmt2ZLwuJlM=; b=h+aUvsLjlUkElABaImYbIgvJ9TBwD8Ejxf+AFo894QPe5A2m2ffouGZuBSh6PpprMb Mri/sO7UoHuVEADHgOpYwi6OMzx4/p26rM5q65TUCV/IHElfkNe45+IlVc170Erjx+cb DwlcOSkyfotlWYC+8IBSh4O5pMXCASKocOt6Hgw/4VhwCdD42oi87bU2wu+a+L+45XOB Lgga6sVKHlOH4P7HyUq0HGlyCgOaaHAsDwTijmxJuU1S05ycbpiLwWTRA1GZVKhMhu/S UYinmi5tcgPfwJ8SXx2V0rgU/cCUwH7LvdVITqcFHxCXs7Wz3zmtYasGU1aNHL/DLYS6 +cEQ==; 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=1779694706; x=1780299506; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lrtSln6Ey4TVk76lKLEqQ7Z5cQQ2VLEGar5yQQ9vbOc=; b=SSKf5KIuNSDr2PvzKJIpPpPfewVyDqYkKqR0MwBUSrFFLpn32K1dbXq7HaFQQ9COvB ZKWy3MX1VnyUHSp3RrCP5DmzNqEAyzvFy1Q/KHU7TS4K0QsJhMpZhZN4tyu2mMXJ6JLr raMb+IgRLHFiuDm4BgEZ02xMglSv1r9m9DV83ZA4MV7wDqMmUwTa34XYc6WeWu9X+QqK HKmguk23uHKgsezJPf9zyTyFPmLsM6jL3WKoje2trh7og4jfGz/kI5IacZAL0CAIs+Lt pFE2u+FRhDTlCZi7L8KAKjQh6J/p+/muZXusajQUOTzhCdp87YR8aWTncKlFXupBtVEV gAzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779694706; x=1780299506; h=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=lrtSln6Ey4TVk76lKLEqQ7Z5cQQ2VLEGar5yQQ9vbOc=; b=hVLywyv+Ou+Je4uaOlesR+34tlfYQ/Q4PePLhz5Jb/id/3B6UIThlnOxXJcD0YNQDm e1CK/oVYrv5W/918rx5efxrWLkjiD5jEHjNHVBPug4AIu5PoFExTW7ycSpPS+oojuC4z gHI50Qz+CBS8aLa8QgIm7K6TLWzdk39ujgLoPJpHfjIsyt1eD8SQ0kDa4htdA7mCHdgb 02cZJ0a9eSjWAepN2jfLT7tdWiFrityM9wplTjrOzCFIfGxlRBA3+vLB6R1r8IoPCpQa Hx2+k0usK5w1V45aE1Jj0rM8k6apDIWK9SbMB9UxWdJBosqVbgTRDymCgZWtgpI11zI8 Wl9Q== X-Forwarded-Encrypted: i=1; AFNElJ9MnlZihal+Zmj9zIAwv0CefMUKKnu4bigs+i+X/eymiepNndFKfyyypQWPDkMYMZOfxqyjjz0q6WGVsD7p@lists.postgresql.org X-Gm-Message-State: AOJu0Yx8I5xCGx7qhmW80UuX5I+sH+DzXZ0n5tAUCzUa3YeaQcR/mu+L QagFqils9PvQH0qYcz5kpGqcxOM3oQEvmrlieUfVDZLZsDSEiTGy469cvP+ZEhkVe030R9btcil t1v3/qZK1azqd8EYJneq01v5PAIy7ENR9UDvW X-Gm-Gg: Acq92OFXiW9u+pFwHVyhpTBLe9H/Y42/I9YhlHapHOErB6sh3+D8znXXHIEXHFIubNy Uoq0gzJCCJ2sd3FNHcbCzZV9zQwERrddtHFLDMRV0uduOIZHNKR14/kLw0ij2xjqV+1OtLrOK6h YQf2U4ghginMYrW1Ml+uN2RftQpSrZ06w0fGtQiqv2SJ0F2aWLG3+IlaYalog72ncOwYLAa35jN qNjSnEqRXHpEy6rTtKaVGVE3kK6i4J49O8QzoyTTkYgh32fdLHIbxkK+ypPvt4skd+HYxSFktVO wv9zRdmzmZ9h2ElsvA== X-Received: by 2002:a05:622a:250a:b0:516:d73d:2a34 with SMTP id d75a77b69052e-516d73d2da4mr193106281cf.5.1779694706141; Mon, 25 May 2026 00:38:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Mon, 25 May 2026 17:37:58 +1000 X-Gm-Features: AVHnY4Ioul4Bjsv0LwsJ3bnYPm69d8ZzeAY9xprNOKT-z8IhkgUrz5tij0_qPfI Message-ID: Subject: Re: Support EXCEPT for ALL SEQUENCES publications To: Shlok Kyal Cc: shveta malik , vignesh C , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Shlok - Here are some minor review comments for patch v5-0002. ====== doc/src/sgml/catalogs.sgml 1. - True if the table is excluded from the publication. See - EXCEPT. + True if the table or the sequence is excluded from the publication. See + EXCEPT. /or the sequence/or sequence/ ====== src/backend/catalog/pg_publication.c check_publication_add_relation: 2. * Check if relation can be in given publication and throws appropriate * error if not. ~ Too terse. There are missing words. SUGGESTION Check if the target relation is allowed to be specified in the given publication and throw an error if not. ~~~ 3. if (pri->except) { relname = RelationGetQualifiedRelationName(targetrel); if (pubrelkind == RELKIND_SEQUENCE) errormsg = gettext_noop("cannot specify \"%s\" in the publication EXCEPT (SEQUENCE) clause"); else errormsg = gettext_noop("cannot specify \"%s\" in the publication EXCEPT (TABLE) clause"); } else { relname = RelationGetRelationName(targetrel); errormsg = gettext_noop("cannot add relation \"%s\" to publication"); } ~ Wondering why sometimes the error `relname` is fully-qualified and sometimes it is not. Isn't it better to always be qualified? ====== Kind Regards, Peter Smith. Fujitsu Australia