Improve message about failed transaction log archiving
authorPeter Eisentraut
Sat, 27 Apr 2013 02:43:54 +0000 (22:43 -0400)
committerPeter Eisentraut
Sat, 27 Apr 2013 02:43:54 +0000 (22:43 -0400)
The old phrasing appeared to imply that the failure was terminal.
Improve that by indicating that archiving will be tried again later.

src/backend/postmaster/pgarch.c

index 3ddd59664765ae09f78a723adbce1eef4ca73f6c..ffd4830cb0538d6c64f37eb8a68aa9888490ebc4 100644 (file)
@@ -503,7 +503,7 @@ pgarch_ArchiverCopyLoop(void)
                if (++failures >= NUM_ARCHIVE_RETRIES)
                {
                    ereport(WARNING,
-                           (errmsg("transaction log file \"%s\" could not be archived: too many failures",
+                           (errmsg("archiving transaction log file \"%s\" failed too many times, will try again later",
                                    xlog)));
                    return;     /* give up archiving for now */
                }