I use the unusual bytea column type in a PostgreSQL DB because the data in this column is like a blob. I mostly contains text, but sometimes it contains binary data.
Which index would fit if the query like this gets done?
WHERE (UPPER("my_bytea_col"::text) LIKE '%FOO%'