Debian Codegraph @

contrib/pg_trgm/sql/pg_utf8_trgm.sql

raw
1 SELECT getdatabaseencoding() <> 'UTF8' AS skip_test \gset
2 \if :skip_test
3 \quit
4 \endif
5
6 -- Index 50 translations of the word "Mathematics"
7 CREATE TEMP TABLE mb (s text);
8 \copy mb from 'data/trgm_utf8.data'
9 CREATE INDEX ON mb USING gist(s gist_trgm_ops);