2.7.0
The COPY FROM/COPY TO API that Pgsql uses is obsolete and deprecated.
This changes it to use the new API in libpq.
Also, added $handle copy_complete
which terminates a COPY FROM stdin
operation without the hack of writing {\.} to the handle.
Finally, updated tests and added tests for COPY.