Victor Snezhko <snezhko(at)indorsoft(dot)ru> writes:
> Agreed, but such corruption indicates that there is non-multibyte-safe
> (octet-wise) case conversion somewhere, at best (with fully working
> locale) it will cause case conversion to do nothing instead of actual
> conversion.
Yours is the first installation I've heard of that fails to get this
right, and the code in question (downcase_truncate_identifier) has
been like that since PG 7.4.something ...
regards, tom lane