Joe Conway <mail@joeconway.com> writes:
> I forget the specifics, but I have seen issues before if the terminal
> encoding and client encoding don't match. Could it be something like that?
Theoretically, if the example is all-ASCII, that shouldn't matter.
But for sure there is something weird happening.
One idea for investigation is to set log_statement = 'all' and
then see how the troublesome command shows up in the postmaster log.
regards, tom lane