Fix error message in pre_sync_fname.
authorRobert Haas
Mon, 18 May 2015 16:53:09 +0000 (12:53 -0400)
committerRobert Haas
Mon, 18 May 2015 16:53:54 +0000 (12:53 -0400)
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

index 6fa75d18d30521ad4f931ad1751eedd13ac5dffb..bed8478dd1aec224999a7371e455eba58d12819f 100644 (file)
@@ -2461,7 +2461,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);