select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Extensions / Full-text search

pg_trgm

text similarity measurement and index searching based on trigrams

pgext.cloud · Website · Documentation · License text · Control file

Overview

Packagepg_trgm
Version1.6
PostgreSQL versions14 · 15 · 16 · 17 · 18
RepositoryPostgreSQL contrib
Extension typeStandard
Requires CREATE EXTENSIONYes
Requires preloadNo
TrustedYes
Latest commit2026-05-14
Latest release2026-05-14
Catalogue updated2026-07-29

Related extensions

Required by

geohistorical_objectsGeohistorical objects support
hartonomousHartonomous substrate — schemas, types, tables, BLAKE3, S^3 geometry, traversal, UCD/UCA atoms
kor_searchA PostgreSQL extension for Korean-English text search.
maludb_coreA memory DBMS for long-term institutional memory, human-AI knowledge sharing, and contextual recall. PostgreSQL 17 extension.
pg_gitImplements Git-like repositories, commits, branches, merges and remote operations using PostgreSQL-native data and functions.
pg_sag_ragPure-SQL multi-hop event/entity retrieval, query routing, and in-database RAG evaluation.
postgres_ciImplements the database backend for the defunct Postgres-CI service, including users, projects, builds, hooks, sessions, and notifications.

See also

pg_similaritysupport similarity queries
fuzzystrmatchdetermine similarities and distance between strings
smlarEffective similarity search
pg_bigmcreate 2-gram (bigram) index for faster full text search.
pgpcrePerl Compatible Regular Expression functions
re2ClickHouse-compatible regex functions using RE2
biscuitIAM-LIKE pattern matching with bitmap indexing
citextdata type for case-insensitive character strings
unaccenttext search dictionary that removes accents
pgroongaUse Groonga as index, fast full text search platform for all languages!