Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> And what I'm saying is that you can only do that if all single byte
> encodings are ASCII compatable and I'm not prepared to say that...
psql already assumes that; see the flex processor.
> So in the switch statement I listed the encodings I know to be ASCII
> compatable and at some point someone who actually knows the other
> encodings will explain what needs to be done.
Even if this were an appropriate solution, the formatting code is not
the place to put such knowledge...
regards, tom lane