CREATE EXTENSION pg_trgm; CREATE INDEX trgm_idx_empresas_razon_social ON empresas USING gin (razon_social gin_trgm_ops);