aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2021-08-04 19:19:44 -0700
committerAndres Freund <andres@anarazel.de>2021-08-04 19:19:58 -0700
commitfa604e0dd07a39ba34f93d06ded8243280dffdeb (patch)
tree63dcc3400102dc8ffa744276c2c6278341274065 /contrib/postgres_fdw/postgres_fdw.h
parente8086bd3ba0ab73a18ac2293dd14f488734126ec (diff)
downloadpostgresql-fa604e0dd07a39ba34f93d06ded8243280dffdeb.tar.gz
postgresql-fa604e0dd07a39ba34f93d06ded8243280dffdeb.zip
pgbench: When using pipelining only do PQconsumeInput() when necessary.
Up to now we did a PQconsumeInput() for each pipelined query, asking the OS for more input - which it often won't have, as all results might already have been sent. That turns out to have a noticeable performance impact. Alvaro Herrera reviewed the idea to add the PQisBusy() check, but not this concrete patch. Author: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20210720180039.23rivhdft3l4mayn@alap3.anarazel.de Backpatch: 14, where libpq/pgbench pipelining was introduced.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions