Most probably the problem is with the search_path
setting. Run:
SHOW search_path;
Is the schema where you installed pg_trgm
included? If not, include it.
Or, if you have the necessary privileges, you can change the schema of an extension with:
ALTER EXTENSION pg_trgm SET SCHEMA public; -- or the schema you want
Alternatively, you can schema-qualify functions - and even operators using the OPERATOR()
construct:
SELECT * FROM rssdata WHERE extensions.similarity(description, 'Brazil') > .8;
SELECT * FROM rssdata WHERE description OPERATOR(extensions.%) 'Brazil';
Removes dependency on the search_path
. But it's tedious.