model-writtenrun 4222 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut proposed allowing pgperltidy, pgperlcritic and pgperlsyncheck to process specified files or directories, initially retaining whole-tree processing when no arguments were supplied #1; Daniel Gustafsson endorsed the patch #2.
- Tom Lane explained that pgindent's explicit-argument requirement was intentional, recommended matching it, and supported the portability of passing individual files to find #3; Peter revised the patch to require arguments and documented using a dot for whole-tree processing #4.
- Andrew Dunstan introduced a separate Perl rewrite of pgperltidy as preparation for additional pgindent-like features, removing its hardcoded path and requiring arguments #5; Dagfinn Ilmari Mannsåker suggested cleaner diagnostics, File::stat and Fcntl usage, and list-form exec to avoid shell escaping problems #6.
- Peter proposed committing the smaller consistency change for PostgreSQL 16 while leaving Andrew's broader rewrite for PostgreSQL 17, and asked whether it would include pgperlcritic and pgperlsyncheck #7; Andrew agreed to both the expanded scope and the sequencing #8.
- Peter's revised patch #4 landed unchanged as 3d9fd1a874, and he confirmed completion in #9.
- Andrew subsequently posted a follow-up converting all three tools to Perl with a shared FindPerlFiles.pm module and incorporating Ilmari's earlier suggestions #10; the thread ends with the argument-handling change committed and the Perl rewrite awaiting further review.