model-writtenrun 1621 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bruce Momjian opened the thread after src/tools/codelines appeared to show a 10% reduction in PostgreSQL 17's C line count #1.
- Tom Lane obtained increasing counts from clean release checkouts and explained that make distclean can leave obsolete build files after changes of Git HEAD; Bruce agreed to investigate and rerun his measurements #2 #3 #4 #5.
- Alvaro Herrera proposed enumerating tracked files with git ls-files, and David Rowley supplied a command that retained the existing file-extension filter while avoiding untracked build output #6 #7.
- Daniel Gustafsson questioned the script's inconsistent language and test coverage, Alvaro suggested counting Perl, and Aleksander Alekseev demonstrated cloc as an alternative, correcting his comparison to confirm approximately 4% growth from PostgreSQL 16 to 17 #8 #9 #10 #11.
- Bruce adopted git ls-files because it produced clean-tree counts without modifying the checkout, committed the exact change as 5d4dc112c7, and then posted the applied patch and corrected historical counts showing 4% growth for PostgreSQL 17 #12.
- Broader counting changes remained outside the patch: Bruce favored counting code installed with a cluster or extensions, while Daniel pointed out that the script still included C tests and excluded installed C++ code #13 #14 #15 #16.
- David subsequently questioned whether the top-of-tree instruction had been removed, but Bruce showed that it remained and David acknowledged misreading the patch, so no correction was needed #17 #18 #19.
- Bruce then questioned keeping src/tools/codelines at all because its usage and status as a standard counting method were unclear; Aleksander Alekseev and Peter Eisentraut supported removal, and Bruce's final message reported that the script had been removed #20 #21 #22 #23.