>> All right, I have reinstalled postgresql server with "Use ICU for
>> unicode collation" but it did not help!
>
> Postgres 9.3 on FreeBSD 10.2 with kernel, userland and software from
> ports compiled with clang. Server compile flags include ICU in
> addition of the defaults and client flags using non-GPL libedit
> instead of readline.
Thank you for testing this! I have 9.4 but probably that doesn't matter.
I'm not sure what is causing the problem on my box. I'll be installing a
new virtual machine and try other variations/settings. Will be back
with the results soon.