mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Message style fixes
This commit is contained in:
@@ -1442,7 +1442,7 @@ sendFile(const char *readfilename, const char *tarfilename, struct stat *statbuf
|
||||
if (verify_checksum && (cnt % BLCKSZ != 0))
|
||||
{
|
||||
ereport(WARNING,
|
||||
(errmsg("cannot verify checksum in file \"%s\", block "
|
||||
(errmsg("could not verify checksum in file \"%s\", block "
|
||||
"%d: read buffer size %d and page size %d "
|
||||
"differ",
|
||||
readfilename, blkno, (int) cnt, BLCKSZ)));
|
||||
@@ -1599,8 +1599,10 @@ sendFile(const char *readfilename, const char *tarfilename, struct stat *statbuf
|
||||
if (checksum_failures > 1)
|
||||
{
|
||||
ereport(WARNING,
|
||||
(errmsg("file \"%s\" has a total of %d checksum verification "
|
||||
"failures", readfilename, checksum_failures)));
|
||||
(errmsg_plural("file \"%s\" has a total of %d checksum verification failure",
|
||||
"file \"%s\" has a total of %d checksum verification failures",
|
||||
checksum_failures,
|
||||
readfilename, checksum_failures)));
|
||||
|
||||
pgstat_report_checksum_failures_in_db(dboid, checksum_failures);
|
||||
}
|
||||
|
||||
@@ -523,7 +523,7 @@ pg_replication_slot_advance(PG_FUNCTION_ARGS)
|
||||
|
||||
if (XLogRecPtrIsInvalid(moveto))
|
||||
ereport(ERROR,
|
||||
(errmsg("invalid target wal lsn")));
|
||||
(errmsg("invalid target WAL LSN")));
|
||||
|
||||
/* Build a tuple descriptor for our result type */
|
||||
if (get_call_result_type(fcinfo, NULL, &tupdesc) != TYPEFUNC_COMPOSITE)
|
||||
|
||||
Reference in New Issue
Block a user