model-writtenrun 517 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- John Naylor reported that arrays over information_schema domains could survive pg_upgrade with invalid embedded element OIDs, breaking whole-array reads and pg_dump, and proposed rejecting affected columns before upgrade in #1.
- Chengpeng Yan observed that typelem also describes non-array types, making the initial query prone to false positives, suggested a length restriction, and asked about TAP coverage in #2.
- John instead restricted the query to associated array types using e.typarray = t.oid in #3, added explanatory comments, and noted that there were no existing TAP tests for these type checks; no tests were added.
- Chengpeng raised a possible custom-array false negative in #4; John requested a concrete example, prioritized avoiding false positives, and considered limiting backpatching to version 15 onward in #5.
- Chengpeng acknowledged an overlooked restriction on user-defined types using array_subscript_handler and accepted the revised criterion in #6.
- John committed #3 as 77f54eb074 with light comment and message edits, then confirmed completion in #7; he ultimately declined all backpatching because the reproducer was contrived and there were no field reports.