I have a table containing email data.
The from
column is text (character varying).
The to
column and the cc
column are both arrays of text (also character varying).
These will be searched using entire email address values (no 'like' type searches). I need to return all rows where any of the addresses match one supplied.
Can I add an index that includes all 3 columns? What should the operator class be?
Currently I've tried using GIN and GiST index methods but can't find operator classes that work with those!