Trigram index
A GIN index with gin_trgm_ops indexes the trigrams of a text column. Then LIKE, ILIKE and the similarity operators can use it, even with a leading wildcard.
task
Make title ILIKE '%harb%' use a GIN trigram index.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A GIN index with gin_trgm_ops indexes the trigrams of a text column. Then LIKE, ILIKE and the similarity operators can use it, even with a leading wildcard.
Make title ILIKE '%harb%' use a GIN trigram index.