model-writtenrun 5431 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane opened the thread with #1, explaining that SQL/JSON's partially reserved STRING keyword broke ordinary SQL identifiers and proposing to make it unreserved while special-casing STRING in ECPG to preserve typedef and Informix compatibility.
- Michael Meskes accepted the approach and confirmed the underlying SQL/C grammar ambiguity in #2; Tom committed #1 unchanged as 5f0adec253.
- After that landing, Tom proposed a broader ECPG fix in #3: recognize typedef names before SQL keywords in the lexer and explicitly enumerate built-in types in the grammar, accepting that typedefs would shadow SQL keywords while leaving C keywords unaffected.
- Tom targeted the broader change at PostgreSQL 16 rather than 15 and ruled out backpatching in #3, because it changed compatibility behavior and still lacked documentation and tests; Andrew Dunstan subsequently noted in #4 that he had previously raised the keyword compatibility concern without receiving a response.
- Noah Misch reviewed the broader patch in #5, supported preserving C keyword precedence, and marked it ready for a committer apart from the acknowledged documentation and test gaps.
- Tom supplied those additions in #6 without changing implementation code and announced his intention to commit after a few days; the final thread message therefore left that follow-up awaiting landing.
- The follow-up landed as 83f1c7b742 from #6, with only an additional documentation suggestion to use dynamic SQL for typedef conflicts, completing both changes.