model-writtenrun 82 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Shay Rojansky reported that a server-produced empty tsquery failed to roundtrip through binary input, supplying a libpq reproducer while noting that nonempty binary queries and empty text queries worked #1.
- Ayush Tiwari reproduced the failure on master and traced it to tsqueryrecv() calling findoprnd() for an empty query, whereas text input already handles empty queries #2.
- Ayush Tiwari submitted a patch that skips the operand walk and its assertion when size is zero, and advocated backpatching because supported branches and binary logical replication could be affected #2.
- Tom Lane confirmed that binary COPY out and back in also reproduces the problem and approved pushing the patch in the thread's final message #3.
- Tom Lane subsequently committed the submitted code unchanged as 264c441c4f, crediting Ayush Tiwari as author and specifying backpatching through PostgreSQL 14; no further work remained pending in the supplied thread.