From d1eea4f935209c48dff645ae6a13b361ce38c0f8 Mon Sep 17 00:00:00 2001 From: Vignesh C Date: Wed, 9 Sep 2026 10:02:30 +0530 Subject: [PATCH v1 3/5] Fix missing check in test_except_root_partition The test assigned the result of checking the replication slot for changes to $result but never checked it, causing the check to be silently ignored. Check that no changes for the excluded partitioned table are present in the replication slot. --- src/test/subscription/t/037_except.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/subscription/t/037_except.pl b/src/test/subscription/t/037_except.pl index 43b51c8ff71..a73a509e763 100644 --- a/src/test/subscription/t/037_except.pl +++ b/src/test/subscription/t/037_except.pl @@ -52,6 +52,10 @@ sub test_except_root_partition $result = $node_publisher->safe_psql('postgres', "SELECT count(*) = 0 FROM pg_logical_slot_get_binary_changes('test_slot', NULL, NULL, 'proto_version', '1', 'publication_names', 'tap_pub_part')" ); + is($result, qq(t), + "no changes for the partitioned table in the EXCEPT clause are present in the replication slot (publish_via_partition_root = $pubviaroot)" + ); + $node_publisher->wait_for_catchup('tap_sub_part'); # Verify that no rows are replicated to subscriber for root or partitions. -- 2.55.0