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.94.2) (envelope-from ) id 1vHFcK-001SBx-Sz for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Nov 2025 06:06:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vHFcJ-00CWQ0-Kl for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Nov 2025 06:06:35 +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.94.2) (envelope-from ) id 1vHFcJ-00CWPq-AF for pgsql-hackers@lists.postgresql.org; Fri, 07 Nov 2025 06:06:35 +0000 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vHFcG-006RXl-2w for pgsql-hackers@lists.postgresql.org; Fri, 07 Nov 2025 06:06:34 +0000 Received: by mail-qv1-xf2c.google.com with SMTP id 6a1803df08f44-88051279e87so4561546d6.3 for ; Thu, 06 Nov 2025 22:06:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762495591; x=1763100391; 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=C7O6s9Er5PzNVU0yYxYSDrhu7VN1MCNZytVxksHwLGI=; b=OrOBj8CKhC62isZnhwXhnBKAgcUVxV1QIQo1TRAnX3jXK/J/6CebN25s3g8pz7xl2j 9u7crBNQ6LUWCN0IA3ZKP5VQJQEZN7N53jInIWVfelosfr8vD7LnNad4ODkRTzKN3rC5 cMYQoKWdUYVtQI7u0XO2NNC6MuMle5GlP8ke7GUXKJbrZDaMXEkgM2/tLFCK4/kz6NXL SWLzEPRIDab0ycFlHXE8+7vAIFRN8+4Cq4zJq3pLOYs0I0jngtRxQfQHq2HQL8RoQwJM OJHgHi0tWlG6JDOUQ5vvvpfJNeP9YRjZaezM2K9u7tcTWKqa/2ZSTTIzFNp/+FvIpnhx FVwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762495591; x=1763100391; 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=C7O6s9Er5PzNVU0yYxYSDrhu7VN1MCNZytVxksHwLGI=; b=VxwYLAm43WpREbOtF1KAPfu9WWNQnGRp81C157rB/+lBxjtXytQYtyIMqAd5oJJJrw 7InfkGSlKSA25Ry2UuxTHGGHadbkPrJaCzz+rEcMYAXmDmH3rgJ5HxPMxwXb2vp8Kn1j Ag+XpR9Sj6dEGgmTx0SoF789EN3cBm896OCd6Hh/9L17CwfdE/Q7+3/vLKfEhZXIOupt YkEVAN9sZ/2GLAm4ewi4/G93J9wpHmAtvzPSKx+7FJiU4RAzsAP3lRr3iu9Pq82ZIv4G IaKghWQoBmadlTly6rbuhxNEEgUY8qnTr+sXYOAgLRaW3g4gaKoEzBHlMnPCq1TwfF9u HKaw== X-Forwarded-Encrypted: i=1; AJvYcCVAFhRT8b7VmZGKyHDFxOajykFF/Rt1+dyTLcMmC448x8qBdI45DL1aZKOk1NTSxiAH1Qns0XwXHm11rFFU@lists.postgresql.org X-Gm-Message-State: AOJu0Ywmv/Zkgwh/ZZHZqm8Op2BL5JtZroGwdnirnDQCYwLb8/ju7cDw SWlAD4OL9tNhrSTcc2DMiRYuxCtgx8gVk5idE87/trQmI47TaNhCSjUhrSZ0xs80+bNGaeT0vXa JKUUzQjExdX6+mSSosSjiF668Y7H/vJM= X-Gm-Gg: ASbGncvMK9AT38ZjBp+Kd6YmakfrLEvZDaBkeUxcCub79p+CNJssq683QD0fnPwIvA4 AZAGamH0FAGFpMrcaJTMVDdd8303viX4NWcAtTdApzJsSzRrIrE/2W8+T4/noqk256cqiBHwjm/ wJegcu5ALvHj7mjIV/yU1Fsrmp7R2QcriJ2MVaGK9bKaOF6ksdWlm3F+oXFk0RsC7AdM8oKI12K RAHR2U3R1gqNtH5gQqmBMfaAtzmpg1Ke60vcbrWEiBwefomro3jEjxnTDPWEZulYb9qdeQP+mJZ N2E8AdphNS6W476Ppg== X-Google-Smtp-Source: AGHT+IFv22fQD6GKZW2meGvvPaV3IDrkLUKsGPyCBasj5pLogMLem/sVUuFtiBPyiKgBFa9ovrVBHFNWhKIBO0Uyjec= X-Received: by 2002:ad4:5c8d:0:b0:880:8682:9b46 with SMTP id 6a1803df08f44-88176753426mr28630126d6.45.1762495591117; Thu, 06 Nov 2025 22:06:31 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Fri, 7 Nov 2025 17:06:04 +1100 X-Gm-Features: AWmQ_bm9TIudjUb93Yw4DGT_8RroVOFHuhc5E6TiFxymRPWH4w8chH7niDWRpTg Message-ID: Subject: Re: Skipping schema changes in publication To: Shlok Kyal Cc: vignesh C , Amit Kapila , "Zhijie Hou (Fujitsu)" , YeXiu <1518981153@qq.com>, Ian Lawrence Barwick , Bharath Rupireddy , 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. Some questions for the patch v25-0002 (EXCEPT tables) ====== doc/src/sgml/ref/alter_publication.sgml 1. +ALTER PUBLICATION name ADD ALL TABLES [ EXCEPT [ TABLE ] ( exception_object [, ... ] ) ] You can do both ADD/SET the , so really there should be an ADD/SET ALL TABLES command as well, right? ~~~ 2. What was your reason for changing the syntax? AFAICT those added "( )" are not strictly necessary, so I just wondered your reason. For example, we do not have any "( )" for [,...]. It is: ALTER PUBLICATION name ADD publication_object [, ...] Not: ALTER PUBLICATION name ADD (publication_object [, ...]) So in the same way we could have EXCEPT syntax like that: ALTER PUBLICATION name ADD ALL TABLES [EXCEPT [, ...]] Where table_exception_object is: [ TABLE ] [ ONLY ] table_name [ * ] Currently, if the user just wants to exclude a single table they must do: ALTER PUBLICATION name ADD ALL TABLES EXCEPT (t1); instead of just ALTER PUBLICATION name ADD ALL TABLES EXCEPT t1; ~~~ 3. BTW, I think you may need to consider a instead of a generic name like , because in the future if we EXCEPT SEQUENCES the name may be not appropriate because things like [ONLY] and [*] are not applicable for sequences. ====== Kind Regards, Peter Smith. Fujitsu Australia