model-writtenrun 5218 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Justin Pryzby reported that a shadowed idxs variable left the child-index lookup operating on an empty list, and questioned whether the code was reachable at all in #1.
- David Rowley traced the callers and found none combining a valid indexOid with the noninternal trigger creation needed to reach this code; his patch in #2 removed the lookup and added an assertion to catch future changes to that assumption.
- Justin Pryzby raised the possibility of extension or fork callers and pointed out a typo in the new comment in #3; the thread records no further resolution of the external-caller concern.
- Alvaro Herrera agreed that SQL offered no apparent way to associate such a trigger with a specific index and supported removal provided regression tests passed in #4.
- David Rowley committed #2 unchanged as 16d69ec29b, then announced in #5 that the removal had landed on master and that he saw no reason to remove the code from stable branches.
- After the thread's final message, David Rowley corrected the comment typo in c89b44a68d, crediting Justin's observation in #3 and explaining that he had accidentally omitted his local correction.