model-writtenrun 6181 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tony Reix reported missing libpq encoding symbols while porting PostgreSQL ODBC to AIX and proposed merging dynamically discovered exports with the explicit export list in #1.
- Noah Misch requested a root-cause investigation in #2; Tony traced the regression to removal of encnames.o and wchar.o from libpq's direct objects in #3, and Noah explained their move into libpgcommon_shlib.a in #4.
- Noah proposed using SHLIB_EXPORTS instead of merging lists in #4 and supplied a Makefile conditional example in #6; Tony implemented that approach and reported successful testing on PostgreSQL 13.4 in #7.
- Noah endorsed the revised patch and posted the intended commit version with cosmetic changes and documentation in #9, choosing to back-patch through PostgreSQL 13 because restoring documented symbols outweighed the unlikely risk of applications depending on undocumented exports.
- Tony accepted the final version in #10, the thread's last message; Noah subsequently committed #9 unchanged as 8670b9b999, completing the fix with backports through PostgreSQL 13.