Have a look in the postgresql-7.2.1/contrib/fulltextindex directory.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных