model-writtenrun 8434 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Euler Taveira reported that pg_restore's data-file close error omitted the filename and supplied a one-line patch to include it, matching the nearby open-error diagnostic #1.
- Ranier Vilela suggested replacing the nearby free() with pg_free() and questioned whether the %m format required an explicit argument #2.
- Álvaro Herrera committed Euler's patch unchanged as 89a7d21dfc and announced that the fix had been pushed to PostgreSQL 9.5 and later #3.
- Álvaro Herrera explained that changing one of many frontend free() calls offered little benefit and that PostgreSQL's snprintf implementation expands %m to strerror(errno), leaving both outside the committed fix #4.
- Michael Paquier cautioned that a wholesale switch to pg_free() would complicate backpatching, favored case-by-case conversion during other work, and elaborated on %m's origins; the filename fix was fully landed when the thread ended #5.