diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-09-14 11:17:33 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-09-14 11:17:33 +0200 |
commit | b0ec61c9c27fb932ae6524f92a18e0d1fadbc144 (patch) | |
tree | d7ac8851a7e0382829dd89c4c9595b47b459554e /src/backend/access/transam/xlog.c | |
parent | be6f7cd9bb4a80787a7ebd602e5cae23485e4fe2 (diff) | |
download | postgresql-b0ec61c9c27fb932ae6524f92a18e0d1fadbc144.tar.gz postgresql-b0ec61c9c27fb932ae6524f92a18e0d1fadbc144.zip |
Quote filenames in error messages
The majority of all filenames are quoted in user facing error and
log messages, but a few were still printed without quotes. While
these filenames do not risk causing any ambiguity as their format
is strict, quote them anyways to be consistent across all logs.
Also concatenate a message to keep it one line to make it easier
to grep for in the code.
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/080EEABE-6645-4A46-AB20-6285ADAC44FE@yesql.se
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index f26c8d18a61..725a308debb 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -2248,8 +2248,7 @@ XLogWrite(XLogwrtRqst WriteRqst, TimeLineID tli, bool flexible) errno = save_errno; ereport(PANIC, (errcode_for_file_access(), - errmsg("could not write to log file %s " - "at offset %u, length %zu: %m", + errmsg("could not write to log file \"%s\" at offset %u, length %zu: %m", xlogfname, startoffset, nleft))); } nleft -= written; |