Content-Length: 254765 | pFad | http://github.com/postgrespro/postgres/commit/8388680ce4fedbd4054f1a651d705bc191343a06

22 Fix error message in pre_sync_fname. · postgrespro/postgres@8388680 · GitHub
Skip to content

Commit 8388680

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 32f8d57 commit 8388680

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
@@ -2467,7 +2467,7 @@ pre_sync_fname(char *fname, bool isdir)
24672467

24682468
if (fd < 0)
24692469
ereport(FATAL,
2470-
(errmsg("could not open file \"%s\" before fsync",
2470+
(errmsg("could not open file \"%s\": %m",
24712471
fname)));
24722472

24732473
pg_flush_data(fd, 0, 0);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/8388680ce4fedbd4054f1a651d705bc191343a06

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy