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 1v1jqX-00C8Ne-VO for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Sep 2025 11:09:10 +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 1v1jqW-00233o-NI for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Sep 2025 11:09:08 +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.94.2) (envelope-from ) id 1v1jqW-00233f-9T for pgsql-hackers@lists.postgresql.org; Thu, 25 Sep 2025 11:09:08 +0000 Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v1jqU-002LyC-0i for pgsql-hackers@lists.postgresql.org; Thu, 25 Sep 2025 11:09:07 +0000 Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-e951dfcbc5bso934797276.3 for ; Thu, 25 Sep 2025 04:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758798545; x=1759403345; 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=pNK37Z3ny9BwLcMmIATQVM21NwAAA8lgNFR0xG5GAH8=; b=fxEEwVsnquRNZjcHTRdokFa1o7yzHxK7WmQGVxuOSdHyRa1CltsOYxzBFVMqu8zv90 q/zWTQmqXJKVQjAlumo1aleKgHWZGdbF06/5Wb94NkNKQea6XvrsT+yj+Om25jTGiFjr pSoYymWNcNVznqljWOyhbxiqZ8GppEvOzl1ivHlIg+udUO6GWPk5u/8w/YefK8H7/wpT xqnANC3mEs06faQ0OrHFpA8/w0tCFT0nDFAqVd8zosYOu9InpafBpeEuixYAPHngDOcw MjANg6eHp46gfsS0M+pUC+TWuTyXRflSd1kezU9L9jFeCLmfCO0LsfykCbFL/hXoiGw+ 5WuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758798545; x=1759403345; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pNK37Z3ny9BwLcMmIATQVM21NwAAA8lgNFR0xG5GAH8=; b=E41ALYhoqf11nJRPQ5bMikU13uwK5eXhS+EylrBDVuE1+N175Z7Njq/delITzJ45G/ usaUrWmqCkjZB9DSns+NpYIHppre+LxzBtLcH4MtQPryJ15ayAB1ViocmuPMng+0vwgx rTT2jB+TL6vulXDzu+NAHnTv0G+/d+VU5U9OH1zalpVA1xJ5NFgPpwcb7zr0f95BkXGe WLjd/r05yU8RipK7T6tqX8FnqPKObx3ePldHp2+B1SpOYr0tyEZz9/Us+SfBqCpoLIDd m9sa1v9K8ol5YRD+1cMAou3CjzPOU7aZ42OhwBrFfDER4ti8hWQLOgi4XsVD6DPASPyg dn/g== X-Forwarded-Encrypted: i=1; AJvYcCV+eIOArpnYQXOH3VdC+TReTjOi3ii1FovwXTYCF5xM1lponOOTrFk6JsepRb+foWliLutEXa5B0MvSQ9bW@lists.postgresql.org X-Gm-Message-State: AOJu0Ywx9B0pip0PA4r9dtI/pPNPt/fjI0Dd+Eh3DlcZdzGycYxVyuzV cdPXkzb81ScGH/Xl1WOLfDWiKBlyR/r1SnTgkNua6TxHUYRM7LLHrMvtBHiHVHtND/XdDPPONc9 6zj/gto3HQ0iXVeFEBn3sycMG1/dLu0c= X-Gm-Gg: ASbGncvBldaAuuPIwwdZWTvTBG26oRRgM7xJIowQN0lTVugSlWjK6JfDaVFhf+7cPs8 Nwt6S7X93d2XhCwdIGpjBlZYfAiuS7lOwk/RUcF7rQ0B7TeycKOrbrPCYSdibyVxnziDtgJY8+N naeOfcmkDlNun5hyx0qrAjNSV1wMIezLnRb+X0ZdbSapPDRYEtPz3vJOAfZT/q7PQjUbkTiwJKX VBgoCwF3eErAKdRptZUq8vn7k/RN1MlRdmhuClWUw== X-Google-Smtp-Source: AGHT+IFm5TFCdtACSMXQcEI1ZQBd5N+6WUgjLITK96ThaonM+SnnePPSIdNMDZZwTprrw+N1IFuZO1hmL5vyoOhQLv0= X-Received: by 2002:a05:690e:2403:b0:633:af02:b05e with SMTP id 956f58d0204a3-6361a6e6c21mr1349238d50.9.1758798545087; Thu, 25 Sep 2025 04:09:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: vignesh C Date: Thu, 25 Sep 2025 16:38:54 +0530 X-Gm-Features: AS18NWDJxvH8OucqrP7_8GRurRrTuc7CbCOqKMh7QUyRLWujiX7oz6o6rAT-174 Message-ID: Subject: Re: Skipping schema changes in publication To: Shlok Kyal Cc: Peter Smith , 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 On Fri, 5 Sept 2025 at 11:57, Shlok Kyal wrote: > > On Mon, 25 Aug 2025 at 13:38, Shlok Kyal wrote: > > > > On Thu, 21 Aug 2025 at 05:33, Peter Smith wrote: > > > > > > Hi Shlok, > > > > > > I reviewed your latest v20-0003 patch and have no more comments at > > > this time; I only found one trivial typo. > > > > > > ====== > > > src/bin/psql/describe.c > > > > > > 1. > > > + /* > > > + * Footers entries for a publication description or a table > > > + * description > > > + */ > > > > > > Typo. /Footers entries/Footer entries/ > > > > > > > I have fixed it and attached the updated patches > > > The patches were not applying on HEAD and needed a Rebase. Here is the > rebased patches Few comments: 1) Currently from pg_publication_tables it is not clear if it is replicating column list or replicating exclude column, can we indicate if it is exclude or not: create publication pub1 for table t1(c1); create publication pub2 for table t1 except ( c1); postgres=# select * from pg_publication_tables; pubname | schemaname | tablename | attnames | rowfilter ---------+------------+-----------+----------+----------- pub1 | public | t1 | {c1} | pub2 | public | t1 | {c2} | (2 rows) 2) Tab completion is not correct in this case: postgres=# alter publication pub3 add table t2 EXCEPT ( , WHERE ( 3) tab6 is not used anywhere, it can be removed: + CREATE TABLE tab5 (a int, b int, c int); + CREATE TABLE tab6 (agen int GENERATED ALWAYS AS (1) STORED, bgen int GENERATED ALWAYS AS (2) STORED); + INSERT INTO tab1 VALUES (1, 2, 3); 4) both these tests are using same message: + $node_subscriber->safe_psql('postgres', "SELECT * FROM tab1 ORDER BY a"); +is( $result, qq(|2|3 +|5|6), + 'check incremental insert for EXCEPT (column-list) publication'); +$result = $node_subscriber->safe_psql('postgres', + "SELECT * FROM sch1.tab1 ORDER BY a"); +is( $result, qq(1|| +4||), 'check incremental insert for EXCEPT (column-list) publication'); we can include table name here to differentiate the test that will help in identifying test failure easily 5) /newly added column are is replicated/ should be "newly added column is replicated" is($result, qq(|||10), 'newly added column are is replicated'); Regards, Vignesh