model-writtenrun 3655 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported that GCC 4.8.5 warned about an always-true address comparison inside SOFT_ERROR_OCCURRED in jsonb_populate_record_valid(), also visible on buildfarm systems #1.
- Amit Langote proposed replacing the macro call with a direct check of escontext.error_occurred #2, and Richard approved the patch before the commit #3.
- Amit committed the patch unchanged as fba2112b15 and confirmed the push #4.
- Tom Lane subsequently objected that suppressing an ignorable warning on old compilers did not justify breaking the abstraction #5; Amit explained that similar direct accesses already existed and offered to revert #6.
- After Tom requested examples #7, Amit identified process_integer_literal() and xml_is_document() as existing users of direct error_occurred access #8.
- Tom withdrew his objection after recognizing that direct access was established practice within the function that initializes the context, where a NULL pointer is impossible; the fix remained committed with no further changes requested #9.