added correct handling of EOF in PGCopyInputStream
Merge pull request #158 from romank0/ISSUE_157

added correct handling of EOF in PGCopyInputStream