model-writtenrun 4293 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tim Field reported that jsonpath datetime() could not parse JavaScript JSON date strings containing fractional seconds and a Z timezone suffix, and that his comparison did not report an error #1; Tom Lane requested a self-contained reproduction #2.
- jian he demonstrated that an explicit datetime template accepted fractional seconds with a numeric timezone but rejected Z as a TZH value #3.
- Tom Lane confirmed that even to_jsonb(now()) produced fractional-second timestamps that datetime() rejected, then supplied a patch adding fractional-second formats, restoring the documented datatype ordering, and adding regression tests #4.
- Tom Lane left Z and timezone-name parsing outside the patch because the underlying timestamp parser lacked that support and extending it appeared to be a new feature; the final message proposed backpatching the fractional-second fix through PostgreSQL 13 #4.
- The attached patch landed unchanged as 6f23b5f74f, with 7398e27224 representing the same fix on another branch; fractional-second support was resolved, while Z parsing remained outside the committed change.