Libpq copy speedup patch attached. No input buffer logic involved, justremoving the expensive PQconsumeInput call per putCopyData call, and leavingparseInput as is, as discussed before.
Alon.