Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> writes:
> I think we could consider char to be a single-byte bytea and use the
> escape format of bytea for char. That way there is some precedent and
> we don't add yet another encoding or escape format.
Do you want to take that as far as changing backslash to print
as '\\' ?
regards, tom lane