summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-12-27 12:16:24 +0900
committerMichael Paquier <michael@paquier.xyz>2022-12-27 12:16:24 +0900
commit2259c661dc4ecd88ac22b5358248f47ca5a5d4fc (patch)
tree5ead6d8bc94373b8c0e8ff71cbbc9df2a2d21c47
parentd497093cbecccf6df26365e06a5f8f8614b591c8 (diff)
downloadpostgresql-2259c661dc4ecd88ac22b5358248f47ca5a5d4fc.tar.gz
Fix incorrect copy-pasto in error message of pg_waldump.c
The error message used on fclose() failure was incorrect, so fix it. Oversight in d497093, that I have somehow managed to miss.
-rw-r--r--src/bin/pg_waldump/pg_waldump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_waldump/pg_waldump.c b/src/bin/pg_waldump/pg_waldump.c
index 15cc500672..e97c47f307 100644
--- a/src/bin/pg_waldump/pg_waldump.c
+++ b/src/bin/pg_waldump/pg_waldump.c
@@ -529,7 +529,7 @@ XLogRecordSaveFPWs(XLogReaderState *record, const char *savepath)
pg_fatal("could not write file \"%s\": %m", filename);
if (fclose(file) != 0)
- pg_fatal("could not write file \"%s\": %m", filename);
+ pg_fatal("could not close file \"%s\": %m", filename);
}
}