\timing on
\set num_rows 100000

drop table if exists test_thai;

create table test_thai(id serial, data text);

insert into test_thai (data) select 'อัญประกาศ' || i::text from generate_series(1,:num_rows) as t(i);

truncate test_thai ;

create index test_thai_data on test_thai(data);

insert into test_thai (data) select 'русский' || i::text from generate_series(1,:num_rows) as t(i);

truncate test_thai ;

insert into test_thai (data) select '汉字/漢字' || i::text from generate_series(1,:num_rows) as t(i);

truncate test_thai ;

insert into test_thai (data) select 'อัญประกาศ' || i::text from generate_series(1,:num_rows) as t(i);

-- perf_4.9 record -g -a --call-graph dwarf