I have a database and want to be able to look up in a table a search that\'s something like: select * from table where column like \"abc%def%ghi\" or select * from table where c
For the like operator use one of the operator classes varchar_pattern_ops or text_pattern_ops
like
varchar_pattern_ops
text_pattern_ops
create index test_index on test_table (col varchar_pattern_ops);
That will only work if the pattern does not start with a % in which case another strategy is required.
%