PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Запрос select lower(convert_from(convert_to('ТеСт', 'UTF8'), 'UTF8'))
> возвращает 'ТеСт' , а не 'тест'
I don't speak Russian, but try it like this:
ru=# select lower(convert_from(convert_to('ТеСт', 'UTF8'), 'UTF8' collate "default"));
lower
-------
тест
(1 row)
Without that, the collation of the expression works out as "C" because
convert_from's second argument is of type "name", which since v12
has default collation "C". Then lower() won't do anything with
non-ASCII letters.
regards, tom lane