PS_NITPICKS_20240813_SEQ_0004.txt

text/plain

Filename: PS_NITPICKS_20240813_SEQ_0004.txt
Type: text/plain
Part: 1
Message: Re: Logical Replication of sequences
diff --git a/src/backend/replication/logical/syncutils.c b/src/backend/replication/logical/syncutils.c
index ed353f1..1702be9 100644
--- a/src/backend/replication/logical/syncutils.c
+++ b/src/backend/replication/logical/syncutils.c
@@ -8,9 +8,8 @@
  *	  src/backend/replication/logical/syncutils.c
  *
  * NOTES
- *	  This file contains common code for synchronization of tables and
- *	  sequences that will be help apply worker, table synchronization worker
- *    and sequence synchronization.
+ *	  This file contains code common to table synchronization workers, and
+ *    the sequence synchronization worker.
  *-------------------------------------------------------------------------
  */
 
@@ -93,7 +92,7 @@ invalidate_syncing_relation_states(Datum arg, int cacheid, uint32 hashvalue)
  * Common code to fetch the up-to-date sync state info into the static lists.
  *
  * Copy tables that are not READY state into table_states_not_ready, and
- * sequences that have INIT state into sequence_states_not_ready. The
+ * sequences that are not READY state into sequence_states_not_ready. The
  * pg_subscription_rel catalog is shared by tables and sequences. Changes to
  * either sequences or tables can affect the validity of relation states, so we
  * update both table_states_not_ready and sequence_states_not_ready
@@ -132,10 +131,7 @@ FetchRelationStates(void)
 			started_tx = true;
 		}
 
-		/*
-		 * Fetch tables that are in non-ready state, and sequences that are in
-		 * init state.
-		 */
+		/* Fetch tables and sequences that are in non-READY state. */
 		rstates = GetSubscriptionRelations(MySubscription->oid, true, true,
 										   false);