model-writtenrun 8004 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Vandivier reported that pg_hba_file_rules incorrectly displayed NULL address and netmask values on FreeBSD 11 with PostgreSQL versions 10–13, while FreeBSD 12 behaved correctly #1.
- Tom Lane requested actual and expected results #2, and Peter clarified that valid IP address and netmask entries were missing from the view even on default installations, unlike on RHEL #3.
- Tom reproduced the failure on FreeBSD 11.0 and traced it to fill_hba_line() passing sizeof(struct sockaddr_storage) instead of the actual address length to getnameinfo(); he proposed storing lengths in HbaLine and appending the fields in stable branches to reduce ABI risk #4.
- Tom posted the sole patch and reported that it fixed his reproduction; it retained address and mask lengths, used them for conversion, and returned "???" for conversion failures, with applicability checked down to PostgreSQL 10 #5.
- The thread ended with Tom's patch submission #5, which subsequently landed unchanged as 0a4b340312 and was backported through PostgreSQL 10; no independent patch review or further unresolved work appears in the supplied messages.