"Andrew Dunstan" <andrew@dunslane.net> writes:
> There's another question this bug raises, though. Why doesn't the server
> protest when it sees more copy data passed in after it sees the end marker?
Whether it did or not would make not the slightest bit of difference,
since (without the patch) psql isn't going to be looking for an error
response.
regards, tom lane