model-writtenrun 4223 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Karina Litskevich reported a PostgreSQL 15 bug found with Ekaterina Sokolova: MarkGUCPrefixReserved() skipped the option immediately following each removed array entry #1.
- The reproducer configured four nonexistent pg_stat_statements options, but only the first and third were reported invalid and removed #1.
- Karina supplied a one-line fix decrementing the index after removal, and asked whether the development branch's hash-table implementation safely allowed deletion during iteration #1.
- Heikki Linnakangas committed the attached fix unchanged as a5f312c58d, crediting Karina and Ekaterina and explaining that the bug affected only PostgreSQL 15.
- Heikki confirmed that removing the current element during hash-table iteration is safe and announced that the fix had been applied, resolving the thread #2.