"Sergey Konoplev" <gray.ru@gmail.com> writes:
>> Finally - did you compile this from source yourself, or is it installed
>> via apt? I'm wondering whether you have an unusual version of a library
>> linked in, and it's taking a long time to parse the query.
> I've compiled it from sources. BTW, I tested it on both 8.3.3 and 8.3.4.
What configure options did you use, what locale/encoding are you using,
what nondefault settings have you got in postgresql.conf?
regards, tom lane