diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2024-07-11 13:21:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2024-07-11 13:21:13 -0400 |
commit | 0d8bd0a72ea284ffb1d1154efbe799241cc5edc6 (patch) | |
tree | a02394fd7eede77c17ed5ae77996202339c39cc4 /src/backend/replication/logical/worker.c | |
parent | a0f1fce80c0373c16b22a1bdc9b0b61958fc9b6a (diff) | |
download | postgresql-0d8bd0a72ea284ffb1d1154efbe799241cc5edc6.tar.gz postgresql-0d8bd0a72ea284ffb1d1154efbe799241cc5edc6.zip |
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
Diffstat (limited to 'src/backend/replication/logical/worker.c')
-rw-r--r-- | src/backend/replication/logical/worker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index 3b285894dbe..c0bda6269bd 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -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 |