Tente adicionar varchar_pattern_ops ao seu índice
CREATE INDEX tablename_name_idx
ON search.tablename
USING btree
(name COLLATE pg_catalog."default" varchar_pattern_ops);
CREATE INDEX tablename_name_idx
ON search.tablename
USING btree
(name COLLATE pg_catalog."default" varchar_pattern_ops);