g_trgm is an extension, so:

CREATE EXTENSION pg_trgm;

If you get the following error

ERROR: could not open extension control file ".../extension/pg_trgm.control":
No such file or directory"

then you need to install the module for your operating system

  • Ubuntu/Debian:

    sudo apt install postgresql-contrib
    
  • Redhat/Centos

    sudo yum install postgresql10-contrib
    
  • Fedora

    sudo dnf install postgresql-contrib

相关文章:

  • 2021-10-09
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-01-16
  • 2021-09-06
猜你喜欢
  • 2021-11-23
  • 2021-11-30
  • 2021-09-24
  • 2022-12-23
  • 2021-08-26
  • 2021-07-29
  • 2022-01-07
相关资源
相似解决方案