mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +03:00
Improve logical replication connection-failure messages.
These messages mostly said "could not connect to the publisher: %s" which is lacking context. Add some verbiage to indicate which subscription or worker process is failing. Nisha Moond Discussion: https://postgr.es/m/CABdArM7q1=zqL++cYd0hVMg3u_tc0S=0Of=Um-KvDhLony0cSg@mail.gmail.com
This commit is contained in:
@@ -4500,7 +4500,8 @@ run_apply_worker()
|
||||
if (LogRepWorkerWalRcvConn == NULL)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_CONNECTION_FAILURE),
|
||||
errmsg("could not connect to the publisher: %s", err)));
|
||||
errmsg("apply worker for subscription \"%s\" could not connect to the publisher: %s",
|
||||
MySubscription->name, err)));
|
||||
|
||||
/*
|
||||
* We don't really use the output identify_system for anything but it does
|
||||
|
Reference in New Issue
Block a user