Skip to content

Commit 89c8fb6

Browse files
committed
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.
1 parent e369bbb commit 89c8fb6

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/file

1 file changed

+1
-1
lines changed

src/backend/storage/file/fd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,7 @@ pre_sync_fname(char *fname, bool isdir)
20262026

20272027
if (fd < 0)
20282028
ereport(FATAL,
2029-
(errmsg("could not open file \"%s\" before fsync",
2029+
(errmsg("could not open file \"%s\": %m",
20302030
fname)));
20312031

20322032
pg_flush_data(fd, 0, 0);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy