Use varchar_pattern_ops instead of text_pattern_ops.