Skip to content

Commit faee8f1

Browse files
committed
Message style improvements
1 parent d83940a commit faee8f1

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/backend/access/transam/timeline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ readTimeLineHistory(TimeLineID targetTLI)
150150
if (nfields != 3)
151151
ereport(FATAL,
152152
(errmsg("syntax error in history file: %s", fline),
153-
errhint("Expected an XLOG switchpoint location.")));
153+
errhint("Expected a transaction log switchpoint location.")));
154154

155155
if (result && tli <= lasttli)
156156
ereport(FATAL,

src/backend/access/transam/xlog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2608,7 +2608,7 @@ XLogFileOpen(XLogSegNo segno)
26082608
if (fd < 0)
26092609
ereport(PANIC,
26102610
(errcode_for_file_access(),
2611-
errmsg("could not open xlog file \"%s\": %m", path)));
2611+
errmsg("could not open transaction log file \"%s\": %m", path)));
26122612

26132613
return fd;
26142614
}
@@ -5140,7 +5140,7 @@ StartupXLOG(void)
51405140
ereport(FATAL,
51415141
(errmsg("requested timeline %u is not a child of this server's history",
51425142
recoveryTargetTLI),
5143-
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",
5143+
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.",
51445144
(uint32) (ControlFile->checkPoint >> 32),
51455145
(uint32) ControlFile->checkPoint,
51465146
ControlFile->checkPointCopy.ThisTimeLineID,
@@ -7873,7 +7873,7 @@ checkTimeLineSwitch(XLogRecPtr lsn, TimeLineID newTLI, TimeLineID prevTLI)
78737873
/* Check that the record agrees on what the current (old) timeline is */
78747874
if (prevTLI != ThisTimeLineID)
78757875
ereport(PANIC,
7876-
(errmsg("unexpected prev timeline ID %u (current timeline ID %u) in checkpoint record",
7876+
(errmsg("unexpected previous timeline ID %u (current timeline ID %u) in checkpoint record",
78777877
prevTLI, ThisTimeLineID)));
78787878

78797879
/*

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5185,7 +5185,7 @@ RegisterBackgroundWorker(BackgroundWorker *worker)
51855185
if (!IsUnderPostmaster)
51865186
ereport(LOG,
51875187
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
5188-
errmsg("background worker \"%s\": must attach to shared memory in order to request a database connection",
5188+
errmsg("background worker \"%s\": must attach to shared memory in order to be able to request a database connection",
51895189
worker->bgw_name)));
51905190
return;
51915191
}

src/backend/replication/walreceiver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ WalReceiverMain(void)
438438
{
439439
ereport(LOG,
440440
(errmsg("replication terminated by primary server"),
441-
errdetail("End of WAL reached on timeline %u at %X/%X",
441+
errdetail("End of WAL reached on timeline %u at %X/%X.",
442442
startpointTLI,
443443
(uint32) (LogstreamResult.Write >> 32), (uint32) LogstreamResult.Write)));
444444
endofwal = true;
@@ -927,7 +927,7 @@ XLogWalRcvWrite(char *buf, Size nbytes, XLogRecPtr recptr)
927927
if (lseek(recvFile, (off_t) startoff, SEEK_SET) < 0)
928928
ereport(PANIC,
929929
(errcode_for_file_access(),
930-
errmsg("could not seek in log segment %s, to offset %u: %m",
930+
errmsg("could not seek in log segment %s to offset %u: %m",
931931
XLogFileNameP(recvFileTLI, recvSegNo),
932932
startoff)));
933933
recvOff = startoff;

src/backend/replication/walsender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ StartReplication(StartReplicationCmd *cmd)
485485
(uint32) (cmd->startpoint >> 32),
486486
(uint32) (cmd->startpoint),
487487
cmd->timeline),
488-
errdetail("This server's history forked from timeline %u at %X/%X",
488+
errdetail("This server's history forked from timeline %u at %X/%X.",
489489
cmd->timeline,
490490
(uint32) (switchpoint >> 32),
491491
(uint32) (switchpoint))));

0 commit comments

Comments
 (0)