model-writtenrun 3727 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed clearing cache pointers before resetting their memory context to prevent dangling-pointer access after an allocation failure, alongside comment cleanup and typedef formatting fixes #1.
- Zhang Mingli reported that git apply rejected the patch #2, and Tom Lane recommended using patch(1) instead #3; no revised attachment followed.
- Jeff Davis acknowledged that he had missed this OOM hazard and approved the proposed patch #4.
- Tom Lane thanked Jeff Davis for reviewing and said he would push shortly in the thread's final message #5.
- The cleanup subsequently landed as ae6bc39317, retaining the complete patch from #1 and additionally preserving LastSearchPathCacheEntry when a cache lookup misses; no outstanding work was identified.