model-writtenrun 6303 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund reported repeated unnecessary socket reads while processing pgbench pipeline results and proposed guarding PQconsumeInput() with PQisBusy(); his benchmark showed roughly 1.8 million fewer system calls and improved throughput #1.
- Alvaro Herrera found the proposal compelling and offered to commit it, reviewing the idea before a concrete patch was attached #2.
- Andres submitted the guard and explanatory comment, proposing application to master and PostgreSQL 14 while asking whether the performance improvement and possible API misuse justified changing 14 #3.
- Andres brought the release management team into the discussion #4, and Michael Paquier supported applying the fix to 14 because preserving the unnecessary system calls offered no benefit, leaving the thread with support for both target branches #5.
- Andres subsequently committed the attached patch unchanged as 87bff68840, with a PostgreSQL 14 backport recorded and no remaining patch work identified in the thread #3.