"Andrei N.Sobchuck" <andrei@mart.cherkassy.ua> writes:
> But one query fails when I use search on boolean field.
What's the query exactly? I don't see any evidence in your backtrace
that the function is being invoked, so I doubt that has anything to do
with the problem.
regards, tom lane