PS_NITPICKS_20240709_V160002.txt
text/plain
Filename: PS_NITPICKS_20240709_V160002.txt
Type: text/plain
Part: 0
diff --git a/src/backend/replication/logical/tablesync.c b/src/backend/replication/logical/tablesync.c
index 1edba12..7e64702 100644
--- a/src/backend/replication/logical/tablesync.c
+++ b/src/backend/replication/logical/tablesync.c
@@ -1205,12 +1205,14 @@ copy_table(Relation rel)
/* Start copy on the publisher. */
initStringInfo(&cmd);
- /* Check if remote column list has any generated column */
- if(MySubscription->includegencols)
+ /*
+ * Check if the remote table has any generated columns that should be copied.
+ */
+ if (MySubscription->includegencols)
{
for (int i = 0; i < relmapentry->remoterel.natts; i++)
{
- if(remotegenlist[i])
+ if (remotegenlist[i])
{
gencol_copy_needed = true;
break;