Skip to content

Commit ad2ca3c

Browse files
committed
Improve wording of subscription refresh debug messages
Reported-by: Yugo Nagata <nagata@sraoss.co.jp>
1 parent 6f81306 commit ad2ca3c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/backend/commands/subscriptioncmds.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,8 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
573573
copy_data ? SUBREL_STATE_INIT : SUBREL_STATE_READY,
574574
InvalidXLogRecPtr, false);
575575
ereport(DEBUG1,
576-
(errmsg("added subscription for table %s.%s",
577-
quote_identifier(rv->schemaname),
578-
quote_identifier(rv->relname))));
576+
(errmsg("table \"%s.%s\" added to subscription \"%s\"",
577+
rv->schemaname, rv->relname, sub->name)));
579578
}
580579
}
581580

@@ -593,17 +592,15 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
593592
if (!bsearch(&relid, pubrel_local_oids,
594593
list_length(pubrel_names), sizeof(Oid), oid_cmp))
595594
{
596-
char *namespace;
597-
598595
RemoveSubscriptionRel(sub->oid, relid);
599596

600597
logicalrep_worker_stop_at_commit(sub->oid, relid);
601598

602-
namespace = get_namespace_name(get_rel_namespace(relid));
603599
ereport(DEBUG1,
604-
(errmsg("removed subscription for table %s.%s",
605-
quote_identifier(namespace),
606-
quote_identifier(get_rel_name(relid)))));
600+
(errmsg("table \"%s.%s\" removed from subscription \"%s\"",
601+
get_namespace_name(get_rel_namespace(relid)),
602+
get_rel_name(relid),
603+
sub->name)));
607604
}
608605
}
609606
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy