]> granicus.if.org Git - postgresql/commitdiff
Make synchronous replication query cancel/die messages more consistent.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Mar 2011 14:20:22 +0000 (10:20 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Mar 2011 14:20:22 +0000 (10:20 -0400)
Per a gripe from Thom Brown about my previous commit in this area,
commit 9a56dc3389b9470031e9ef8e45c95a680982e01a.

src/backend/replication/syncrep.c

index b70de3993f2c70457a25d5b08295b148b2d1579b..8aef998b47f057b16d263a5eedfd1cdfdb541d44 100644 (file)
@@ -204,8 +204,8 @@ SyncRepWaitForLSN(XLogRecPtr XactCommitLSN)
                {
                        ereport(WARNING,
                                        (errcode(ERRCODE_ADMIN_SHUTDOWN),
-                                        errmsg("canceling the wait for replication and terminating connection due to administrator command"),
-                                        errdetail("The transaction has already been committed locally but might have not been replicated to the standby.")));
+                                        errmsg("canceling the wait for synchronous replication and terminating connection due to administrator command"),
+                                        errdetail("The transaction has already committed locally, but may not have been replicated to the standby.")));
                        whereToSendOutput = DestNone;
                        SyncRepCancelWait();
                        break;
@@ -222,7 +222,7 @@ SyncRepWaitForLSN(XLogRecPtr XactCommitLSN)
                        QueryCancelPending = false;
                        ereport(WARNING,
                                        (errmsg("canceling wait for synchronous replication due to user request"),
-                                        errdetail("The transaction has committed locally, but may not have replicated to the standby.")));
+                                        errdetail("The transaction has already committed locally, but may not have been replicated to the standby.")));
                        SyncRepCancelWait();
                        break;
                }