model-writtenrun 494 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported and reproduced PL/Python test failures with Python 3.14 under Valgrind, confirmed that Python 3.13 worked, and traced master's avoidance of the failure to a timezone-code change #1.
- Tom Lane independently reproduced the failure and argued that master's larger stack allocation in tzload() preallocated stack pages that somehow avoided the Python–Valgrind interaction, whose underlying cause remained unclear #2.
- Tom Lane attached a patch replacing tzload()'s malloc/free workspace with a roughly 70 kB stack variable, reported that it fixed his reproduction, and initially proposed applying it to the back branches #2.
- After revisiting the historical reasons for limiting timezone stack consumption, Tom Lane abandoned unconditional stack allocation and proposed retaining malloc by default while using the stack only under USE_VALGRIND across all branches #3.
- The revised workaround landed as 2e29cb3b81, modifying the patch from #2 with conditional allocation and explanatory comments and receiving backports through PostgreSQL 14; the underlying Python–Valgrind defect remained unexplained.