]> granicus.if.org Git - postgresql/commit
Remove unnecessary PQconsumeInput call from PQputCopyData; it's redundant
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 25 Jan 2006 20:44:32 +0000 (20:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 25 Jan 2006 20:44:32 +0000 (20:44 +0000)
commit9b012311f8b6d3596d2a081b8e30b8e8ee352bf2
tree6194a09b9e7a295a7615294c54431d9e729840ea
parent3a0a16cb7e2aba8d9864d117d1199181432b42b8
Remove unnecessary PQconsumeInput call from PQputCopyData; it's redundant
because pqSendSome will absorb input data anytime it'd be forced to block.
Avoiding a kernel call per PQputCopyData call helps COPY speed materially.

Alon Goldshuv
src/interfaces/libpq/fe-exec.c