]> granicus.if.org Git - postgresql/commitdiff
Improve grammar of message about two-phase state files.
authorRobert Haas <rhaas@postgresql.org>
Fri, 3 Feb 2017 22:13:33 +0000 (17:13 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 3 Feb 2017 22:16:54 +0000 (17:16 -0500)
When there's only one two-phase state file, there's also only one
long-running prepared transaction.  Adjust the message text
accordingly.

Nikhil Sontakke

Discussion: http://postgr.es/m/CAMGcDxcmR_DWZXXndGoPzVQx=B17A5=RviEA1qNaF=FWLy5Whw@mail.gmail.com

src/backend/access/transam/twophase.c

index 6fde2bd8bfd95fdfe7ab2f2460f29bc054acd9bc..50c70b29204149547152ed3d1a349a33bf321726 100644 (file)
@@ -1647,7 +1647,7 @@ CheckPointTwoPhase(XLogRecPtr redo_horizon)
        if (log_checkpoints && serialized_xacts > 0)
                ereport(LOG,
                                (errmsg_plural("%u two-phase state file was written "
-                                                          "for long-running prepared transactions",
+                                                          "for a long-running prepared transaction",
                                                           "%u two-phase state files were written "
                                                           "for long-running prepared transactions",
                                                           serialized_xacts,