model-writtenrun 4803 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that a Debian SID update caused perlcritic to reject a bareword directory handle in psql's create_help.pl #1.
- Michael supplied a patch replacing DIR with lexical $dh consistently in opendir, readdir, and closedir #1.
- Andrew Dunstan approved the patch and observed that his Fedora 35 and Ubuntu 22.04 installations did not report the warning #2.
- Michael said he would apply the patch shortly and suggested the warning might depend on a newer perlcritic version, noting that version 1.148 reported it across all stable PostgreSQL branches #3.
- The patch landed unchanged as 6ba6306256, crediting Andrew's review and backpatching through PostgreSQL 11; no further revisions remained pending.