Fix bug in handling postgres COPY
command and a few others
#610
+37
−21
COPY
command and a few others
#610