Search code examples
arrayspostgresqlrangecontains

what does the @> operator in postgres do?


I came across a query in postgres here which uses the @> operator on earth objects.

I've searched everywhere, but have come up empty on the meaning of this operator (and likely others like it, eg: @<, etc...).

Is this documented somewhere in the postgres docs? I'm even more curious to understand what the operator does on earth objects.


Solution

  • In general @> is the "contains" operator.

    It is defined for several data types.