model-writtenrun 689 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ewan Young reported that JSON_VALUE and JSON_TABLE DEFAULT expressions could bypass the declared type modifier when their base type already matched, even allowing an out-of-range value to be stored in a constrained column #1.
- Ewan Young proposed invoking coercion whenever the RETURNING type carries a type modifier, exempting NULL constants, and supplied regression tests with a reported passing make check #1.
- Amit Langote confirmed the diagnosis and accepted the coercion logic, posting a revision that clarified the comment and added bit(n) and non-Const DEFAULT tests, with plans to backpatch through PostgreSQL 17 #3.
- Ewan Young approved Amit Langote's revised patch before commitment #4.
- Amit Langote committed the revised patch unchanged apart from rebasing as 71cd10cd24, credited Ewan Young as author, and announced that it was pushed, leaving no outstanding work in the thread #5.