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.
This commit is contained in:
Michael Paquier 2022-12-27 12:16:24 +09:00
parent d497093cbe
commit 2259c661dc
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}