For the like operator, use one of the varchar_pattern_ops or text_pattern_ops operator classes
create index test_index on test_table (col varchar_pattern_ops);
This will only work if the pattern does not start with % , in which case a different strategy is required.
source share