"Evgeny Gridasov" <[EMAIL PROTECTED]> writes: > my terminal is RU_ru.KOI8-R, > template1's encoding is UTF8. > ILIKE seems to be buggy when comparing russian strings, > while UPPER/LOWER works OK.
I'll bet that the database's locale setting is expecting some encoding other than UTF8 :-(. You need to have compatible locale and encoding settings inside the database. You didn't say exactly what the database LC_COLLATE value is, but if it's RU_ru.KOI8-R, that definitely does not match UTF8. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq