From 2259c661dc4ecd88ac22b5358248f47ca5a5d4fc Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Tue, 27 Dec 2022 12:16:24 +0900 Subject: [PATCH] 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. --- src/bin/pg_waldump/pg_waldump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_waldump/pg_waldump.c b/src/bin/pg_waldump/pg_waldump.c index 15cc500672d..e97c47f3071 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); } }