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 1vJnbs-003A01-1P for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Nov 2025 06:48:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJnbq-004qv9-0m for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Nov 2025 06:48:38 +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.96) (envelope-from ) id 1vJnYe-004mvA-1k for pgsql-hackers@lists.postgresql.org; Fri, 14 Nov 2025 06:45:20 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vJnYX-007fiw-0t for pgsql-hackers@lists.postgresql.org; Fri, 14 Nov 2025 06:45:15 +0000 Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-4eddfc251d0so15534161cf.0 for ; Thu, 13 Nov 2025 22:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763102710; x=1763707510; 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=nih1mZDgO5qu12B+ojjLynKGesB1uNNNyBQnyw5+reY=; b=F3Jzvrh9c21dN2xqLy/J14XzFcZsdp2QKaaimK7QuLCYDCdkiiOn/CPI9DZbeiA8ZW Fh9EpsW6f+TiiDkbSY41Ptwk5xLm3ATuWxMLijg67OH0Dx/Cr6GJZMcdMFVr+QnqmgAo Ic2LSX2LoFM9bNrjzP3fBH+CRK4xXtN2437Q6KMp4rsuM716P4j1rF1p7t2mIBes41fP CP/bmOgEzQL1ne+OjhZjDFGtKdux3VmlWgsPewrORQ5Tqb7CUWBtsOiWwV0X9BBOl5q3 5PVkRxzk57bJkUKQqU5t42cvHImbZkM7IIV29SM+Qb+17qZa+wRhqxB4ZocRSRV7m/BJ lJRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763102710; x=1763707510; 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=nih1mZDgO5qu12B+ojjLynKGesB1uNNNyBQnyw5+reY=; b=ciONTWMBg9V5DyZ/QH9vzt4I2GSRmnJ9EGi/JntIv8WpkJ9G3IEdD+hf/2O1H1l989 hGvwJaMJukw8c+6xaUKefymnguQwDurbINlGuVFGnUZrXGcuU4iujTNxKmLSdBNOzsuz HtwnhBROWgeidPd5EzW9wa+CzNdeJqxJgRZjgzfF/XUb0q7SElyZ/QQdBUXp/acRR9xu v0/RHpYnUzJcSVAyXnDBv9kmGDz2N20DJVcmxIdKL5F2TT5bO1ZDl1GfF6UxHahpl9pW P1Hi84lHr/p8XRcIXknHuPnoH0BPQ/edKhriMDClqSxiQ5qZKrdWYW3wGFIrCiTWhZqF hb6A== X-Forwarded-Encrypted: i=1; AJvYcCXXKwzEKG8jmxxyzvrdpDJP53iNn1Re4KZ3h3aqv7BS1aZboVXrlRTvO+tL38R+r3QPHlKf19kRU7vChAEX@lists.postgresql.org X-Gm-Message-State: AOJu0YyZkGnP1BdRpgdf0SWJf731OmWpXg/SB8et59d5TRt2fdbpWNO2 PpZPb9lqBue5zCMthyn3YiSG2vjHETtFdjxEz5N2zO3ZVUwoAw5r3JgB+s50RBBVzRmMqSgFUTb gdRV163o0UGFNqMTpHwFQAsrvCdChsAg= X-Gm-Gg: ASbGncuRQAH1Fkh75Gn+uFcRaonve6ApoWV43XEjt212wMeye9oTSlwdmOOvwaRCTIC GhzIpdAPvAB4OZXvniPihwdsgsnU7nYXoOIbzS5VQQoasEJPaetQbfp347AHsDw9m1gBdmj/5Uo rsP4HYyMDxWSfwT55Y3Uh8s5Zjs8BHIhcNpbVNJnRwh+d8wDgDdcA4auy+ATiE0VqmZwYSsjlIB PsMKkpGf/tzFktIkAlDLx6QlHSOVk35Te6unqi6KRqEvJBQCu0SikMYL8Jmcsu1lyJGNi2ZwFBv dongycYW4pTRD2C2LbtvL/YY6eRnJQ== X-Google-Smtp-Source: AGHT+IGjCagN1UWXPUVk7zL9yEWVlnUyl3FCRMLizR+bx8azVdhXEA+TjAR4tbIk/AJbtXv4Xk0rRoX3OpGVWdxI88U= X-Received: by 2002:a05:622a:14cf:b0:4ed:b448:b19f with SMTP id d75a77b69052e-4edf20ecd43mr33965971cf.51.1763102710280; Thu, 13 Nov 2025 22:45:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Fri, 14 Nov 2025 17:44:43 +1100 X-Gm-Features: AWmQ_bnEJOoS_9hfQ928aTVtOWZwddrrqUkJK3_HyEvCnK5rQBKPCY-MfBRjog8 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 review comments for patch v27-0001. ====== doc/src/sgml/ref/alter_publication.sgml 1. + + The RESET clause will reset the publication to the default + state. This includes resetting all publication parameters, setting the + ALL TABLES and ALL SEQUENCES flags to + false, and removing all associated tables and schemas from + the publication. It would be better to give references to the actual pg_publication.puballtables and .puballsequences flag fields [1] instead of vaguely calling them the "ALL TABLES and ALL SEQUENCES flags". ====== src/backend/commands/publicationcmds.c AlterPublicationReset: 2. + if (pubform->puballtables) + CacheInvalidateRelcacheAll(); Does that also need to check ->puballsequences? ====== src/test/regress/sql/publication.sql 3. If you want to, you can easily combine many of these test cases and verify them in one go instead of separate ALTER/RESET for every kind of flag. ~~~ 4. +-- Verify that 'ALL TABLES' flag is reset Missing test to check the 'ALL SEQUENCES' flag gets reset? ====== [1] https://www.postgresql.org/docs/devel/catalog-pg-publication.html Kind Regards, Peter Smith. Fujitsu Australia.