Commit ad2ca3cb authored by Peter Eisentraut's avatar Peter Eisentraut

Improve wording of subscription refresh debug messages

Reported-by: default avatarYugo Nagata <nagata@sraoss.co.jp>
parent 6f81306e
...@@ -573,9 +573,8 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data) ...@@ -573,9 +573,8 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
copy_data ? SUBREL_STATE_INIT : SUBREL_STATE_READY, copy_data ? SUBREL_STATE_INIT : SUBREL_STATE_READY,
InvalidXLogRecPtr, false); InvalidXLogRecPtr, false);
ereport(DEBUG1, ereport(DEBUG1,
(errmsg("added subscription for table %s.%s", (errmsg("table \"%s.%s\" added to subscription \"%s\"",
quote_identifier(rv->schemaname), rv->schemaname, rv->relname, sub->name)));
quote_identifier(rv->relname))));
} }
} }
...@@ -593,17 +592,15 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data) ...@@ -593,17 +592,15 @@ AlterSubscription_refresh(Subscription *sub, bool copy_data)
if (!bsearch(&relid, pubrel_local_oids, if (!bsearch(&relid, pubrel_local_oids,
list_length(pubrel_names), sizeof(Oid), oid_cmp)) list_length(pubrel_names), sizeof(Oid), oid_cmp))
{ {
char *namespace;
RemoveSubscriptionRel(sub->oid, relid); RemoveSubscriptionRel(sub->oid, relid);
logicalrep_worker_stop_at_commit(sub->oid, relid); logicalrep_worker_stop_at_commit(sub->oid, relid);
namespace = get_namespace_name(get_rel_namespace(relid));
ereport(DEBUG1, ereport(DEBUG1,
(errmsg("removed subscription for table %s.%s", (errmsg("table \"%s.%s\" removed from subscription \"%s\"",
quote_identifier(namespace), get_namespace_name(get_rel_namespace(relid)),
quote_identifier(get_rel_name(relid))))); get_rel_name(relid),
sub->name)));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment