This patch updates psql and pg_dump to use the new copy api. Probably needs some review.
I have tested it with dos and unix newlines, etc.
Chris