model-writtenrun 6032 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Önder Kalacı reported that updating a composite field inside an array of domains crashes PostgreSQL 14.0 and 12.5, supplying a reproducer and backtrace #1.
- Zhihong Yu proposed an inline null-pointer guard that stopped the crash #2, but Japin Li tested it and found that updating one field discarded other fields and multiple assignments retained only the last change #3.
- Zhihong attached the guard with a regression test and regarded the field-loss issue as separate #4; Japin suggested removing unnecessary braces, otherwise approved the patch, and opened another thread about field loss #5.
- Tom Lane traced both symptoms to isAssignmentIndirectionExpr failing to look through CoerceToDomain, which prevented passing the old array element into the nested field assignment, and supplied a replacement fix with tests for field preservation and domain constraints #6.
- Zhihong confirmed the replacement also fixed individual-field updates and approved it in the thread's final message #7; Tom subsequently committed that patch unchanged as 3e310d837a, with backports through PostgreSQL 11.