Skip to content

Commit 7a37900

Browse files
committed
Make synchronous replication query cancel/die messages more consistent.
Per a gripe from Thom Brown about my previous commit in this area, commit 9a56dc3.
1 parent c5eb835 commit 7a37900

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/replication/syncrep.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ SyncRepWaitForLSN(XLogRecPtr XactCommitLSN)
204204
{
205205
ereport(WARNING,
206206
(errcode(ERRCODE_ADMIN_SHUTDOWN),
207-
errmsg("canceling the wait for replication and terminating connection due to administrator command"),
208-
errdetail("The transaction has already been committed locally but might have not been replicated to the standby.")));
207+
errmsg("canceling the wait for synchronous replication and terminating connection due to administrator command"),
208+
errdetail("The transaction has already committed locally, but may not have been replicated to the standby.")));
209209
whereToSendOutput = DestNone;
210210
SyncRepCancelWait();
211211
break;
@@ -222,7 +222,7 @@ SyncRepWaitForLSN(XLogRecPtr XactCommitLSN)
222222
QueryCancelPending = false;
223223
ereport(WARNING,
224224
(errmsg("canceling wait for synchronous replication due to user request"),
225-
errdetail("The transaction has committed locally, but may not have replicated to the standby.")));
225+
errdetail("The transaction has already committed locally, but may not have been replicated to the standby.")));
226226
SyncRepCancelWait();
227227
break;
228228
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy