model-writtenrun 5883 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut proposed refactoring getIndexes() to build its version-dependent query in a more modular style #1.
- Peter explained that removing support for versions before PostgreSQL 9.2 had reduced the number of branches, but pending patches could add branches for newer versions and still justified the cleanup #1.
- The patch extracted common SELECT fields and handled version-specific fields separately, eliminating duplicated query construction in src/bin/pg_dump/pg_dump.c #1.
- Tom Lane endorsed the approach and similar cleanups elsewhere, while noting that he had not double-checked the details; this was the thread's final message #2.
- Peter subsequently committed the sole patchset #1 unchanged as e2c52beecd on December 20, 2021, leaving no submitted work outstanding.