set search_path=vrevisions_trunk,public;
CREATE EXTENSION IF NOT EXISTS btree_gin;
ALTER TABLE vrevisions_trunk.suggest_data ADD COLUMN lower_text_data text;
ALTER TABLE vrevisions_trunk.suggest_data ADD COLUMN the_geom geometry;
UPDATE vrevisions_trunk.suggest_data SET lower_text_data = lower(text_data);
DROP INDEX suggest_data_idx_russian;
DROP INDEX suggest_data_categories_idx;  

CREATE INDEX suggest_data_idx_lower_text_cat
  ON vrevisions_trunk.suggest_data
  USING gin
  (lower_text_data, categories);  
CREATE INDEX suggest_data_idx_russian_cat
  ON vrevisions_trunk.suggest_data
  USING gin
  (suggest_data_fts_russian, categories);

set search_path=public;
