Michal Samek <webmaster(at)tony(dot)cz> writes:
> Maybe there is some better way to search for the whole word?
I think you want to build a secondary table and search that.
Take a look at the stuff in contrib/fulltextindex; it may solve your
problem as-is, and if not you can probably adapt it to your needs...
regards, tom lane