From 92ecb148e517704ec945dce513db71fee7790cfd Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 24 May 2017 18:56:21 -0400 Subject: Improve logical replication worker log messages Reduce some redundant messages to DEBUG1. Be clearer about the distinction between apply workers and table synchronization workers. Add subscription and table name where possible. Reviewed-by: Masahiko Sawada --- src/backend/replication/logical/tablesync.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/backend/replication/logical/tablesync.c') diff --git a/src/backend/replication/logical/tablesync.c b/src/backend/replication/logical/tablesync.c index 1e3753b8fe2..d69fc7086d0 100644 --- a/src/backend/replication/logical/tablesync.c +++ b/src/backend/replication/logical/tablesync.c @@ -133,8 +133,11 @@ finish_sync_worker(void) /* Find the main apply worker and signal it. */ logicalrep_worker_wakeup(MyLogicalRepWorker->subid, InvalidOid); + StartTransactionCommand(); ereport(LOG, - (errmsg("logical replication synchronization worker finished processing"))); + (errmsg("logical replication table synchronization worker for subscription \"%s\", table \"%s\" has finished", + MySubscription->name, get_rel_name(MyLogicalRepWorker->relid)))); + CommitTransactionCommand(); /* Stop gracefully */ walrcv_disconnect(wrconn); -- cgit v1.2.3