model-writtenrun 8532 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zheng Hacker reported that nested-array filters passed to json_to_tsvector() and jsonb_to_tsvector() produce an internal-error SQLSTATE instead of invalid_parameter_value, tracing the failure to the iterator-token check in parse_jsonb_index_flags() #1.
- Tom Lane concluded that the checks were correct but their error reporting needed improvement, and posted a patch using invalid_parameter_value with a string-or-array-of-strings explanation for malformed flag structures #2.
- The patch also corrected the final internal-error message and updated regression expectations; Tom considered that final error path unreachable but invited correction #2.
- Alexander Lakhin pointed to his earlier report of the same problem and suggested investigating other internal errors from that discussion, without reviewing or testing the attached patch #3.
- After the final thread message, Tom committed the patch unchanged as 9b937d1d1d, explaining that improved error text and SQLSTATE did not warrant backpatching; the broader errors mentioned in #3 remained outside this fix.