model-writtenrun 6212 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane reported that abandoned regexp captures could incorrectly satisfy later back-references, demonstrating two false-positive matches in #1.
- Tom Lane traced the problem to capture positions surviving failed alternation branches and reported reproducing the ancient bug in PostgreSQL 7.4 and Tcl in #1.
- The patch in #1 defined explicit capture-state rules for cdissect recursion, made failed submatches responsible for clearing their captures, and moved resets earlier while eliminating redundant calls.
- The submission #1 added both reproductions to the main regression suite and test_regex module; the supplied thread contains no replies or independent reviews.
- Tom Lane committed #1 unchanged later that day as 9bbf6f7341, completing the submitted fix.