forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit87bff68
committed
pgbench: When using pipelining only do PQconsumeInput() when necessary.
Up to now we did a PQconsumeInput() for each pipelined query, asking the OSfor more input - which it often won't have, as all results might already havebeen sent. That turns out to have a noticeable performance impact.Alvaro Herrera reviewed the idea to add the PQisBusy() check, but not thisconcrete patch.Author: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/20210720180039.23rivhdft3l4mayn@alap3.anarazel.deBackpatch: 14, where libpq/pgbench pipelining was introduced.1 parent1bc8e7b commit87bff68
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3461 | 3461 |
| |
3462 | 3462 |
| |
3463 | 3463 |
| |
3464 |
| - | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
3465 | 3472 |
| |
3466 | 3473 |
| |
3467 | 3474 |
| |
|
0 commit comments
Comments
(0)