Note that I don't know
anything about PostgreSQL or PLS, but the
PLS Callable Personal Librarian (CPL) is a C interface to the PLS engine, recommended by Philip Greenspun as the best search engine technology ever, much better, he argues, than Oracle
interMedia. It might be easy to integrate it with PostgreSQL?
(Of course, he has turned into a big Oracle fan lately, so he may tell you something quite different today.)