model-writtenrun 603 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ian Lawrence Barwick proposed renaming the undocumented getdatabaseencoding() function to pg_database_encoding() to match pg_client_encoding(), adding documentation and adapting callers, tests, and psql compatibility handling in #1.
- Daniel Gustafsson warned that extensions use the existing name and suggested retaining it with an alias in #2; Thom Brown questioned why extensions did not use current_setting('server_encoding') in #3, and Tom Lane opposed removing the old name without years of deprecation and questioned the value of renaming it in #4.
- Ian dropped the rename and submitted documentation for the existing function in #5; Thom advocated deprecation instead in #6, but Ian noted the lack of consensus for removal and defended documenting its existence in #7.
- Daniel supported applying the documentation in #8, and surya poondla verified its application, SGML, wording, and return type while suggesting an optional explanation of its equivalence to server_encoding in #9.
- Daniel committed #5 unchanged as 9fa2c1ebd1, explaining in #10 that he omitted the optional clarification to preserve consistency with pg_client_encoding(); Ian agreed in #11 that broader clarification could be separate work, leaving the documentation landed and the rename abandoned.