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 1vHDMM-00HXel-0I for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Nov 2025 03:41:58 +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 1vHDMK-00Bow6-Kw for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Nov 2025 03:41:56 +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 1vHDMK-00Bovx-8C for pgsql-hackers@lists.postgresql.org; Fri, 07 Nov 2025 03:41:56 +0000 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vHDMH-006QKa-1Q for pgsql-hackers@lists.postgresql.org; Fri, 07 Nov 2025 03:41:55 +0000 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-4ecf03363c9so2730761cf.1 for ; Thu, 06 Nov 2025 19:41:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762486911; x=1763091711; 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=6liwxCm/SeYUtJ79VX7e5okfuSUx8ZV5wJf7FfEQNTM=; b=eyuArh9phBRVdUJT8N9ik+j7qB6dn4y6yMLVCTN7BEe4DjNNQI7CEW+Rvvh9bx+f5R bzqdmGQAtlKzNor/V6uff1ViQbVZIfu7iA449K/5bU56HckY1+VAHALLNbmABBLWq9g4 FYeNAwNd0sFZQ/srwgQRNY572mm8rGW1wByjEgGiNN9gqZnmxM2rWNQHr2G3YXGJShFj sPLRRPVfeuHT/4R09eD9h/yd4Zov3DbLWU/AU70Q91KJRHhIQl20zcsaEZdSSZPUiBts sgM5qHBwEpeN9l/d53txyvOX0pqr2G5C1k9to84qJNTpelG/xVw9uNai/yxn9TR/tdcH NpDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762486911; x=1763091711; 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=6liwxCm/SeYUtJ79VX7e5okfuSUx8ZV5wJf7FfEQNTM=; b=gFBv1BoQhNjZNfW2REy1/iKEYkpUmxcxAuqojB9trHHYiQBZUjWX1PBxC0160cp+XQ zos2/Tn8EqhEt5V/kC8oOk+Bc2hYUwWkI5nKCDNJMtLKQKU4GFkmlfYnImpvUhzDKS6z zIcvMtjAhzUEiOWOPF4FV+6etrgwaCr5b87sJa0yz4njIJd64Ba78KTdmcv9/NetOaY5 Ptybj6XPXeNvnAIoVz67PLxCMMZTQUGyLbs/gyOsViwnq5WAo6/ldV1VwGZm1FKv5xE5 otzNPMtlBH2MizcONnJmKJOowKc+7ymCsSS+ckgOz2fCrOrcPHrNx8H3ltzBhjY4KS/o I3Bg== X-Forwarded-Encrypted: i=1; AJvYcCWfICSAIHuHdBvrgPCSkBVG/VBz2zq2JCTpMLdX6ehPLSIBXymYPNQg0KMCz+jxFA4bxZwyxCvdDzSqM3gJ@lists.postgresql.org X-Gm-Message-State: AOJu0YyrhUcXfbjv+2wtAYYFGwwPsO4mOV4GdlXEAwOsDynn7jiaaTtl j28b3ix+VjFSmliLA7CRhHLkMq74D0xHzQi3vl6DnLyfu1/fbz/dcZR9C2AQdtMlsTSI7qNoOpL INe44intHp3BUDYxt+uOFbQTppvpq/dE= X-Gm-Gg: ASbGncs9UtXP+qZMzdIanTIQBV8AOLxuOhlO6iMFMnexNZNwNhvPUD5sVtJ5YLekJrM MUBaqFLubfk6ntuxNLFV8+7HOpIrV8EAm0U+g4h0ktMxqotHxso1ceNKUiEnOidt52zA1UB5Fkr 4QN/Kq2ng6Rf2wSyHy4ktJjQwBpwuJByR6tsnQ7RAzT/qV0HF8BIvtlwmlR6L5HS5yNfE7fzrs4 TBAoQHdM3g5NnUey5ILnMRSxlrmMIi84iJgDzFILCn5USB6d5c6fr84To+XQrirsMkDT887+v9f 7P6HDEgF9Pw4YKyr0/7YM/CawCoC X-Google-Smtp-Source: AGHT+IEfCTN+bVTWx8Kv/ARwbABwXkJiF09gvoxqRJ+v5LnJSNLgWbZ7mZyhiTXQ64w50YrSZsVT4fmZCkczYkRT2AY= X-Received: by 2002:ac8:7dc1:0:b0:4e8:96ab:da8b with SMTP id d75a77b69052e-4ed9496b2admr19792821cf.23.1762486911201; Thu, 06 Nov 2025 19:41:51 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Fri, 7 Nov 2025 14:41:24 +1100 X-Gm-Features: AWmQ_blK8h0TES3OfssXyuCAWjka836HfkYq0j_GA6j4YWLmPkuQ84B7IhHmdbg 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. Here are some review comments for the patch v25-0001 (RESET). I belatedly saw that you said this is a rebase *only*, so does not yet address any of the earlier review comments [1]. Anyway, below are a few more comments that I did not report previously. ====== Commit message 1. This patch adds a new RESET clause to ALTER PUBLICATION which will reset the publication to the default state which includes resetting the publication parameters, setting ALL TABLES flag to false and dropping the relations and schemas that are associated with the publication. ~ 1a. /which includes.../. This includes... ~ 1b. Needs to also mention about ALL SEQUENCES ====== src/backend/commands/publicationcmds.c AlterPublicationReset: 2. + /* Set ALL TABLES flag to false */ + if (pubform->puballsequences) + { + values[Anum_pg_publication_puballsequences - 1] = BoolGetDatum(PUB_DEFAULT_ALL_SEQUENCES); + replaces[Anum_pg_publication_puballsequences - 1] = true; + } The comment should say ALL SEQUENCES. ====== [1] my review of v24-0001 https://www.postgresql.org/message-id/CAHut%2BPvoOVo%3D_O-sG8wNaLRBPSD%2B6S%3D4PXOH2r%3DyKTxbpAbHkg%40mail.gmail.com Kind Regards, Peter Smith. Fujitsu Australia