model-writtenrun 3276 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Wang reported that INSERT ON CONFLICT through an updatable view failed with error 42P10 for expression indexes, reproducing the problem with JSON extraction and casts on PostgreSQL 12.5 and 16 in #1.
- Tom Lane explained that infer_arbiter_indexes() incorrectly compared catalog expressions using varno 1 against a rewritten view target with a different varno, and supplied a patch adjusting both index expressions and predicates with regression tests in #2.
- Tom Lane committed #2 as 9256bf6eb3, retaining the implementation and lightly adjusting a test's alias usage, with backports to all supported versions.
- After the commit, the reporter asked when the fix would be released and whether PostgreSQL 12 would receive it in #3.
- David G. Johnston answered that the release was scheduled for August and confirmed that the fix had been backpatched to all supported versions, including PostgreSQL 12, closing the thread with the fix landed in #4.