Skip to content

Glossary: PostgreSQL Beyond the Basics

ts_headline()

A function that returns text with the matching words marked, such as in `<b>` tags, for a results page. It reads the whole text, so use it only on the rows you show.

Where the book teaches it

Related terms

ts_rank(), setweight()tsvector, tsquery