model-writtenrun 9890 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- While examining an ecpg lexer synchronization patch, Tom Lane noticed that the realfailN scanner rules always returned FCONST, even when the numeric portion was an integer, and reported the problem in #1.
- Tom demonstrated that an integer immediately followed by an alias beginning with e was legal SQL; make_const() masked the misclassification in SELECT, but other contexts might expose it #1.
- The attached patch reused process_integer_literal() in both backend realfailN rules, and Tom requested corresponding ecpg changes and a cosmetic psql update #1.
- Tom committed the backend patch unchanged and added the corresponding ecpg logic and psql comment changes in 965a3d6be0.
- The proposed work landed in 965a3d6be0 without back-patching because no user-visible problem had been demonstrated; the supplied thread contains no subsequent discussion or independent review.