"Maxim Boguk" <Maxim.Boguk@gmail.com> writes:
> I found that strange effect while helping with slow query on russian
> postgresql online forum.
Please try to put together a self-contained test case for this.
I could not reproduce such a weird result here, but that probably
just means there's something strange about your data distribution.
regards, tom lane