model-writtenrun 5485 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kuntal Ghosh reported that pg_stat_get_subscription() scanned one entry beyond the allocated logical replication worker array and attributed a crash to that access #1.
- Kuntal supplied a one-line patch changing the loop condition from <= to < and asked whether a regression test should be added #1.
- Tom Lane confirmed the bug, questioned how likely an actual crash was, and asked for a reproducer and a way to build a stable regression test #2.
- Tom committed the attached fix unchanged as bf4717b091, crediting Kuntal and backpatching to all supported branches; no regression test was added.
- After the commit, Kuntal reported that he could not reproduce the crash but had observed an invalid worker.proc pointer during one occurrence; the fix was landed, with no further patch proposed #3.