model-writtenrun 7186 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened #1 in response to reported crashes from concurrent bindtextdomain() calls, proposing dedicated mutexes around initialization in libpq and ecpglib; the patch explanation avoids reusing libpq's default mutex because callers might already hold it.
- The preparatory patch in #1 added static initialization support to libpq's Windows mutex emulation, removed duplicated initialization code, and eliminated its malloc failure path; Tom also identified ecpglib's unchecked CreateMutex failure as a reason to extend the cleanup.
- After reporting successful cfbot results, Tom posted #2 with the same mutex implementation copied into ecpglib, confirmed that the mutex variables were static and therefore posed no ABI obstacle to backpatching, and deferred consolidation into src/port as separate refactoring.
- At the thread's final message, #2, Tom intended to commit soon unless objections appeared; neither supplied message contains independent review activity.
- On February 9, the mutex cleanup landed from #2 as 0028b55bc8 with commit-text edits, followed by the unchanged bindtextdomain() fix as a584d03ced, completing both submitted patches.
- The REL_12_STABLE commits 95e960e811 for the mutex cleanup and 9fb1396a96 for bindtextdomain() are backports of those two changes.
- Although the original bug discussion in thread #72346 claims the bindtextdomain() change from its earlier patch #688291, #2 supplies the latest matching version, so both a584d03ced and its backport 9fb1396a96 remain attributed to this thread.