Alexander Korotkov <aekorotkov(at)gmail(dot)com> writes:
> It's also likely we can change
> if (pg_database_encoding_max_length() > 1)
> into something like
> if (pg_database_encoding_max_length() > 1 && bytelen != charlen)
Hm, actually couldn't we just simplify to "if (bytelen != charlen)"?
regards, tom lane