Accelerate ILIKE and fuzzy matches on text.
Section: Extensions and Specialized Utilities
Create trigram index
sql
sql
CREATE INDEX idx_users_email_trgm ON public.users USING GIN (email gin_trgm_ops);Explanation
See summary for usage details.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Extensions and Specialized Utilities
Enable pg_trgm
Install trigram support for similarity search and GIN/GiST indexes.
Check table bloat stats
Estimate dead tuples and free space in a relation.