diff options
author | Peter Eisentraut | 2017-08-07 13:40:12 +0000 |
---|---|---|
committer | Peter Eisentraut | 2017-08-07 13:40:12 +0000 |
commit | ad2ca3cba6e14dbd7b9f388b1e101cd5e2a2c210 (patch) | |
tree | a4b179799509eba3815ea17335ee54085d6f7ea5 | |
parent | 6f81306e4d1716bdf19aa8629b4004966918c56e (diff) |
Improve wording of subscription refresh debug messages
Reported-by: Yugo Nagata <[email protected]>
-rw-r--r-- | src/backend/commands/subscriptioncmds.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index 318612f867..3593712791 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -573,9 +573,8 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data) copy_data ? SUBREL_STATE_INIT : SUBREL_STATE_READY, InvalidXLogRecPtr, false); ereport(DEBUG1, - (errmsg("added subscription for table %s.%s", - quote_identifier(rv->schemaname), - quote_identifier(rv->relname)))); + (errmsg("table \"%s.%s\" added to subscription \"%s\"", + rv->schemaname, rv->relname, sub->name))); } } @@ -593,17 +592,15 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data) if (!bsearch(&relid, pubrel_local_oids, list_length(pubrel_names), sizeof(Oid), oid_cmp)) { - char *namespace; - RemoveSubscriptionRel(sub->oid, relid); logicalrep_worker_stop_at_commit(sub->oid, relid); - namespace = get_namespace_name(get_rel_namespace(relid)); ereport(DEBUG1, - (errmsg("removed subscription for table %s.%s", - quote_identifier(namespace), - quote_identifier(get_rel_name(relid))))); + (errmsg("table \"%s.%s\" removed from subscription \"%s\"", + get_namespace_name(get_rel_namespace(relid)), + get_rel_name(relid), + sub->name))); } } } |