model-writtenrun 5341 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kyotaro Horiguchi opened the thread with #1, proposing that pg_read_binary_file() accept length -1 so callers could read an entire file while tolerating its absence.
- Michael Paquier argued in #2 that obtaining the size first could miss concurrent extensions and that a special -1 length was confusing; Kyotaro adopted his proposed (filename, missing_ok) overload for both text and binary reads in #3.
- Kyotaro consolidated the implementations, documented the new signatures, and revoked public execution rights in #4, while explicitly leaving tail-reading functionality for another feature.
- Tom Lane supported the overloads but objected to increasingly complicated PG_NARGS checks in #5, proposing per-signature argument extraction followed by ordinary C helper calls.
- Kyotaro implemented that structure and added regression tests in #6, using pointer-returning helpers so the SQL wrappers could correctly return NULL.
- Tom committed #6 as 283129e325 with documentation, formatting, catalog-version, and test changes; his announcement in #7 explained that tests now used postgresql.auto.conf because pg_hba.conf could reside elsewhere.
- Michael reported in #8 that postgresql.auto.conf could also be absent; Tom proposed PG_VERSION or postmaster.pid in #9, and Michael favored PG_VERSION in #10 because he believed external_pid_file could replace postmaster.pid.
- Alvaro Herrera corrected that assumption in #11, Tom confirmed postmaster.pid's availability in #12, and d10fad96c6 switched the tests to that file with 20-byte checks.
- Kyotaro thanked Tom and approved the revised tests in #13, closing the thread with both the feature and its portability fix committed and no outstanding patch revision.