David Wheeler <david(at)kineticode(dot)com> writes:
> Is the encoding check fixed in 8.0beta1?
[ looks back at discussion... ] Actually I misremembered --- the
discussion was about how we would *reject* legal UTF-8 codes that are
more than 2 bytes long. So the code is broken, but not in the direction
that would cause your problem. Time for another theory.
Is the problem query using an index? If so, does REINDEX help?
regards, tom lane