model-writtenrun 9135 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Korotkov proposed marking jsonpath functions stable to preserve freedom to change their semantics, despite losing direct expression-index support #1; Tom Lane argued that possible future implementation changes do not disqualify immutable functions #2, and Alexander withdrew the proposal in favor of advising users to rebuild affected indexes when necessary #4.
- Chapman Flack proposed distinguishing PostgreSQL's regex dialect explicitly #3, and Alexander Korotkov and Chapman explored renaming like_regex or adding a keyword or flag #5 #6.
- When discussion resumed in September, Jonathan S. Katz preferred retaining existing syntax and documenting compatibility differences #7; Tom Lane agreed that the regex dialects appeared close enough for documentation to address the gaps #8.
- Tom Lane's standards analysis identified character-class and newline differences, incompatible whitespace handling under the x flag, and outright bugs in m/s mapping and q precedence #10; Jonathan S. Katz volunteered documentation work #11, while Chapman Flack clarified the relationship among XML Schema, XQuery, and SQL regex rules #12.
- Jonathan S. Katz submitted documentation of the regex differences #13 and incorporated Erik Rijkers's wording corrections #14 into #15.
- Tom Lane implemented the flag fixes directly from the discussion in d5b90cd648, centralizing flag conversion, making flag order irrelevant, correcting m/s and q behavior, and rejecting unsupported x mode unless overridden by q.
- Tom Lane expanded the documentation to describe features present in either regex dialect and questioned the treatment of XML character references #16; Jonathan S. Katz checked the specifications and improved paragraph structure #17.
- Tom Lane subsequently concluded that XML entities belong to the surrounding string-literal syntax rather than the regex engine #21, and Chapman Flack confirmed that interpretation with BaseX and Saxon tests #22.
- Tom Lane removed the misleading entity comparison and documented jsonpath string escapes, doubled regex backslashes, and flag meanings in #23; that version landed with a tiny wording edit as 0a97edb12e.
- The documentation work exposed lexer discrepancies, prompting Tom Lane to submit a separate patch removing single-quoted literals, accepting unrecognized escapes as their escaped characters, and simplifying lexer rules #24.
- Jonathan S. Katz reviewed the lexer patch and requested a test demonstrating rejection of single-quoted literals #25, but Tom Lane declined to memorialize confusing parser error messages and deferred broader error-reporting cleanup #26.
- The thread ended with agreement that clearer parser errors could be a later bug fix without changing SQLSTATE and should not block PostgreSQL 12 #27 #28 #29; the lexer patch subsequently landed with only definition/comment rearrangement as e56cad84d5, leaving error-message cleanup for future work.