model-writtenrun 8045 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane investigated a user complaint and posted a patch preserving doubled quotes in ECPG SQL strings and identifiers, with documentation and regression tests; he proposed PostgreSQL 14 only because backpatching could break existing workarounds #1.
- Tom then identified a related problem with literal queries in PREPARE and EXECUTE IMMEDIATE: the lexer applies SQL identifier rules despite documentation promising C strings, and he favored documenting the limitation over introducing awkward quoting semantics or complex lexer changes #2.
- In the final message, Tom relayed 1250kv's discovery that the octal escape \042 works in both existing releases and the patched version, and chose to document that workaround #3.
- The attached quote-preservation fix landed with only documentation wording and punctuation edits as 3dfb1942d9, retaining the code and tests from #1 without backpatching.
- The workaround decision separately landed as documentation, an explanatory lexer comment, and regression coverage in c16a1bbcf4; both changes were committed after the final message, leaving literal-query parsing behavior unchanged as intended in #3.