diff options
author | Robert Haas <rhaas@postgresql.org> | 2015-05-18 12:53:09 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2015-05-18 13:17:19 -0400 |
commit | b965c808ab8189be5716f9572c6d00124767ed80 (patch) | |
tree | 891943bef4d0c3c9217e9ea2f5e5ffad4b691ade /src | |
parent | a3ddf2f292060e88edeb3f3fdfa7b81c2541aa8f (diff) |
Fix error message in pre_sync_fname.
The old one didn't include %m anywhere, and required extra
translation.
Report by Peter Eisentraut. Fix by me. Review by Tom Lane.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/file/fd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 5ef6b5a6806..cb55df24539 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -2228,7 +2228,7 @@ pre_sync_fname(char *fname, bool isdir) if (fd < 0) ereport(FATAL, - (errmsg("could not open file \"%s\" before fsync", + (errmsg("could not open file \"%s\": %m", fname))); pg_flush_data(fd, 0, 0); |