From b9215bc5d05a31ce056e7abb2c73cd864e6d0811 Mon Sep 17 00:00:00 2001 From: Robert Haas <rhaas@postgresql.org> Date: Mon, 18 May 2015 12:53:09 -0400 Subject: [PATCH] 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. --- src/backend/storage/file/fd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 7552ba0b402..fea0998e858 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -2287,7 +2287,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); -- GitLab