Fix generated SQL for PostgreSQL's FTS engine