Skip to content
Advertisement

Tag: fuzzy-search

Similarity function in Postgres with pg_trgm

I’m trying to use the similarity function in Postgres to do some fuzzy text matching, however whenever I try to use it I get the error: If I add explicit casts to text I get the error: My query is: Do I need to do something to initalize pg_trgm? Answer You have to install pg_trgm. In debian, source this sql:

Advertisement