mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +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:
@@ -1342,7 +1342,8 @@ LogicalRepSyncTableStart(XLogRecPtr *origin_startpos)
|
||||
if (LogRepWorkerWalRcvConn == NULL)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_CONNECTION_FAILURE),
|
||||
errmsg("could not connect to the publisher: %s", err)));
|
||||
errmsg("table synchronization worker for subscription \"%s\" could not connect to the publisher: %s",
|
||||
MySubscription->name, err)));
|
||||
|
||||
Assert(MyLogicalRepWorker->relstate == SUBREL_STATE_INIT ||
|
||||
MyLogicalRepWorker->relstate == SUBREL_STATE_DATASYNC ||
|
||||
|
Reference in New Issue
Block a user