Let's say I have a table with an int[]
column and values:
'[1,4,1300]'::int4[]
I want to be able to query the column and get a true
if ANY of the elements match a BETWEEN
statement. So, in this case, something like:
SELECT id FROM table WHERE col && '[1000,2000]'::int4range
or similar.
The column uses gist__int_ops