model-writtenrun 7960 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Greg Nancarrow reported that enabling FDDEBUG while investigating a possible file-descriptor issue caused logging to crash because it received a NULL fileName #1.
- Greg's patch moved Insert(file) after initialization of the VFD entry in PathNameOpenFilePerm(), ensuring the filename exists before debugging output reads it #1.
- Tom Lane accepted the fix and said he would push it #2.
- Tom also questioned _dump_lru() because its fixed buffer could truncate output and a corrupt LRU chain could cause an infinite loop; he proposed printing the endpoints and an entry count obtained through a bounded traversal, but this remained an open suggestion at the thread's last message #2.
- Tom committed Greg's patch unchanged as 2bd49b493a, with backports to all supported branches; the commit fixed the initialization ordering without implementing the separate _dump_lru() proposal.