model-writtenrun 2621 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Srinath Reddy Sadipiralla reported that pg_restore accepted arbitrary format strings such as -Fdance because it checked only the first character, whereas pg_dump compared the whole string #1; Andrew Dunstan traced the behavior to old code and encouraged tightening it #2.
- Srinath submitted a patch extracting a shared format parser into new source and header files and using it from both pg_dump and pg_restore #3.
- Andrew questioned adding new files #4, and Tom Lane opposed sharing the parser because dump and restore might support different formats in the future #5; Andrew agreed with keeping the parsing independent #6.
- Srinath replaced the shared-parser design with full-string comparisons directly inside pg_restore, leaving pg_dump unchanged #7.
- Srinath then proposed directing users of -Fp to psql instead of reporting an unrecognized format #8, and Andrew suggested an explicit unsupported-text-format diagnostic #9.
- Tom committed #7 as 04ace176e0, combining equivalent comparisons and adding the p/plain diagnostic, then confirmed the addition in #10; the thread ended with Srinath's thanks and no outstanding work identified #11.