model-writtenrun 2141 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dmitry Kovalenko reported that test_simple_pipeline inspected a stale NULL result pointer instead of the value returned by PQgetResult, producing an incorrect failure diagnostic #1.
- Tom Lane identified similar bugs and inconsistent result checks throughout the test program and proposed shared helpers to standardize them #2, then submitted a patch that also cleaned up leaked results, connection resources, and the trace file #3.
- Dmitry questioned a remaining result leak on an error path and mentioned his broader sanitizer cleanup work #4; Tom considered cleanup before pg_fatal unnecessary and suggested combining their efforts #5.
- Álvaro Herrera endorsed the patch but suggested using consume terminology for helpers that discard results #6; Tom agreed to rename the existing cancellation helper too #7, and Álvaro accepted that adjustment #8.
- Tom committed the patch as e351e5c4fe, retaining confirm terminology for the helper that returns a result and using consume for void-returning helpers, with only naming and comment changes from the submission #9; the work was complete, and the commit explicitly declined backpatching because the test-only bugs were not serious enough.