]> granicus.if.org Git - postgresql/commitdiff
Message style improvements
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 28 Jul 2013 10:59:09 +0000 (06:59 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 28 Jul 2013 11:01:13 +0000 (07:01 -0400)
src/backend/access/transam/timeline.c
src/backend/access/transam/xlog.c
src/backend/replication/walreceiver.c
src/backend/replication/walsender.c

index 7bb523a4fb44143142c859bc55abc8e447cf2015..e47134a65a01b06d3babcb5e52c111dbe605c1c3 100644 (file)
@@ -150,7 +150,7 @@ readTimeLineHistory(TimeLineID targetTLI)
                if (nfields != 3)
                        ereport(FATAL,
                                        (errmsg("syntax error in history file: %s", fline),
-                                        errhint("Expected an XLOG switchpoint location.")));
+                                        errhint("Expected a transaction log switchpoint location.")));
 
                if (result && tli <= lasttli)
                        ereport(FATAL,
index 96aceb9e087e58cbc7ec2fb6b944e4a8dc6fbaae..16bf78d77f1ab559bb4aba3ff30d5b4e6d0d2971 100644 (file)
@@ -3721,7 +3721,7 @@ XLogFileOpen(XLogSegNo segno)
        if (fd < 0)
                ereport(PANIC,
                                (errcode_for_file_access(),
-                                errmsg("could not open xlog file \"%s\": %m", path)));
+                                errmsg("could not open transaction log file \"%s\": %m", path)));
 
        return fd;
 }
@@ -6281,7 +6281,7 @@ StartupXLOG(void)
                ereport(FATAL,
                                (errmsg("requested timeline %u is not a child of this server's history",
                                                recoveryTargetTLI),
-                                errdetail("Latest checkpoint is at %X/%X on timeline %u, but in the history of the requested timeline, the server forked off from that timeline at %X/%X",
+                                errdetail("Latest checkpoint is at %X/%X on timeline %u, but in the history of the requested timeline, the server forked off from that timeline at %X/%X.",
                                                   (uint32) (ControlFile->checkPoint >> 32),
                                                   (uint32) ControlFile->checkPoint,
                                                   ControlFile->checkPointCopy.ThisTimeLineID,
@@ -9027,7 +9027,7 @@ checkTimeLineSwitch(XLogRecPtr lsn, TimeLineID newTLI, TimeLineID prevTLI)
        /* Check that the record agrees on what the current (old) timeline is */
        if (prevTLI != ThisTimeLineID)
                ereport(PANIC,
-                               (errmsg("unexpected prev timeline ID %u (current timeline ID %u) in checkpoint record",
+                               (errmsg("unexpected previous timeline ID %u (current timeline ID %u) in checkpoint record",
                                                prevTLI, ThisTimeLineID)));
 
        /*
index a30464b312747950c0ba4a0792e27c1538e66570..413f0b94051d083475ef4cc22098b0b2a8808065 100644 (file)
@@ -438,7 +438,7 @@ WalReceiverMain(void)
                                                {
                                                        ereport(LOG,
                                                                        (errmsg("replication terminated by primary server"),
-                                                                        errdetail("End of WAL reached on timeline %u at %X/%X",
+                                                                        errdetail("End of WAL reached on timeline %u at %X/%X.",
                                                                                           startpointTLI,
                                                                                           (uint32) (LogstreamResult.Write >> 32), (uint32) LogstreamResult.Write)));
                                                        endofwal = true;
@@ -927,7 +927,7 @@ XLogWalRcvWrite(char *buf, Size nbytes, XLogRecPtr recptr)
                        if (lseek(recvFile, (off_t) startoff, SEEK_SET) < 0)
                                ereport(PANIC,
                                                (errcode_for_file_access(),
-                                errmsg("could not seek in log segment %s, to offset %u: %m",
+                                errmsg("could not seek in log segment %s to offset %u: %m",
                                                XLogFileNameP(recvFileTLI, recvSegNo),
                                                startoff)));
                        recvOff = startoff;
index 4006c10ca43c8a9bb35c908c8cb8882feefaae87..afd559dae46a567f4685bc6c103d07be93e1d809 100644 (file)
@@ -485,7 +485,7 @@ StartReplication(StartReplicationCmd *cmd)
                                                                (uint32) (cmd->startpoint >> 32),
                                                                (uint32) (cmd->startpoint),
                                                                cmd->timeline),
-                                                errdetail("This server's history forked from timeline %u at %X/%X",
+                                                errdetail("This server's history forked from timeline %u at %X/%X.",
                                                                   cmd->timeline,
                                                                   (uint32) (switchpoint >> 32),
                                                                   (uint32) (switchpoint))));