Bruno Wolff III <bruno(at)wolff(dot)to> writes:
> I am playing around with the cube extension in contrib and was not able to
> get cube_contains to use an index. I was able to get (what I believe to be)
> an equivalent @ operation (cubement containment) to use indexes.
> So I am either confused about there being a @ equivalent to cube_contains
> or cube_contains should be an indexable operation but isn't (or at least
> is harder to get to use an index).
It says here (cube.sql.in) that the @ operator *is* cube_contains.
Also, AFAICT both @ and ~ (the commutator operator, cube_contained)
should be equally indexable. Can you show us your test case?
regards, tom lane