model-writtenrun 5096 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Denis Laxalde reported that combining pipeline and single-row modes in Psycopg could unexpectedly return PGRES_SINGLE_TUPLE for a subsequent query intended to use normal mode #1.
- Denis identified that draining the command queue caused pqPipelineProcessQueue() to return before resetting the single-row flag #1.
- His patch moved the reset before the empty-queue return and added a regression test with its expected protocol trace #1.
- Alvaro Herrera committed the patch with only whitespace changes as db1b931a4e, with backpatching to PostgreSQL 14.
- Alvaro confirmed that the proposed relocation was correct and that both the fix and tests had been pushed, leaving no outstanding work in the thread #2.