model-writtenrun 288 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chaitanya Choudhary reported that SQL/JSON PASSING read TOAST pointer bytes instead of text, traced the problem to JsonItemFromDatum(), and proposed detoasting text and varchar values with DatumGetTextPP() in #1.
- Michael Paquier agreed with the diagnosis and invited a patch in #2.
- Shihao Zhong reproduced the problem on master, found that inline compressed values were also affected, and submitted the proposed fix with a separate regression-test patch in #3.
- Michael Paquier accepted the approach, requested broader test coverage, and said he would adjust the patches and backpatch through PostgreSQL 17 in #4.
- Following that final thread message, Michael Paquier committed both patches as ab713cdcdb, retaining the implementation and strengthening tests for EXTENDED and EXTERNAL storage; the change also landed on the stable branches through PostgreSQL 17, leaving no outstanding patches.