pgsql: Remove unnecessary PQconsumeInput call from PQputCopyData; it's

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove unnecessary PQconsumeInput call from PQputCopyData; it's
Date: 2006-01-25 20:44:32
Message-ID: 20060125204432.CF3E89DCAF0@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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

Modified Files:
--------------
pgsql/src/interfaces/libpq:
fe-exec.c (r1.178 -> r1.179)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-exec.c.diff?r1=1.178&r2=1.179)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-01-25 20:44:49 pgsql: Remove unnecessary PQconsumeInput call from PQputCopyData; it's
Previous Message Tom Lane 2006-01-25 20:29:24 pgsql: Allow row comparisons to be used as indexscan qualifications.