model-writtenrun 9418 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread by identifying SQL-standard discrepancies in regular-expression syntax, escape handling and quote delimiters, including non-strict similar_escape() preventing three-argument substring() from being inlined and causing a substantial performance penalty #1.
- Andrew Gierth investigated the newer SUBSTRING syntax and found that existing keyword precedence concealed ambiguities involving postfix operators; he and Tom also demonstrated failures when ESCAPE followed generic operators #2 #3 #4 #6.
- Tom proposed making explicit ESCAPE NULL return NULL through two new strict similar_to_escape() functions, preserving similar_escape() for stored-view compatibility and retaining the historical backslash default and empty-string escape behavior with clearer documentation #7.
- Robert Haas advocated restricting or removing postfix operators, while Tom asked for concrete benefits sufficient to justify compatibility breakage; Andrew reported finding no extensions using them, but this discussion produced no patch here #8 #9 #10.
- Tom submitted the strictness and documentation patch, including regression tests, and deferred it beyond PostgreSQL 12 because the release cycle was too advanced #11.
- When discussion resumed in September, Tom confined the work to his submitted patch and requested a separate CommitFest entry for syntax changes; Andrew agreed to leave that issue alone unless postfix-operator removal later justified revisiting it #12 #13 #14.
- Alvaro Herrera reviewed the patch's documentation, requesting clearer wording around POSIX escape tables and a word-boundary example, then marked it ready for a committer #15.
- Tom incorporated those documentation suggestions and committed the patch as ca70bdaefe, preserving its implementation and tests; his final message confirms the landing, while the broader syntax and delimiter-validation concerns were outside this patch #16 #11 #1.