Installing the Trigram Module
This section covers installing the postgresql-contrib package available from your Linux distribution.
The PostgreSQL user must have CREATE privileges on the current database.
Grant access using the following command:
grant create on database <database_name> to <database_user>;
Install the
postgresql-contribpackage:sudo dnf install postgresql-contrib
Execute the following command to create the extension:
create extension pg_trgm schema <schema>;
Exclude the
schema <schema>part when installing to the default public schema.Review that the extension has been installed using the following query:
select * from pg_extension;