mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
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 <sawada.mshk@gmail.com>
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user