Content-Length: 254771 | pFad | http://github.com/postgrespro/postgres/commit/b9215bc5d05a31ce056e7abb2c73cd864e6d0811

7B Fix error message in pre_sync_fname. · postgrespro/postgres@b9215bc · GitHub
Skip to content

Commit b9215bc

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 f1946b1 commit b9215bc

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

22882288
if (fd < 0)
22892289
ereport(FATAL,
2290-
(errmsg("could not open file \"%s\" before fsync",
2290+
(errmsg("could not open file \"%s\": %m",
22912291
fname)));
22922292

22932293
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/b9215bc5d05a31ce056e7abb2c73cd864e6d0811

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy