Re: operator @> does not work with box. - Mailing list pgsql-novice

From Frank Bax
Subject Re: operator @> does not work with box.
Date
Msg-id BLU0-SMTP5124143E113078E25257CDAC8C0@phx.gbl
Whole thread Raw
In response to Re: operator @> does not work with box.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Tom Lane wrote:
> A B <gentosaker@gmail.com> writes:
>> I do
>> select box '((0,0),(1,1))' @> point '(0,0)';
>> and I get this:
>> ERROR:  operator does not exist: box @> point
>
>> I'm using 8.4.4 and I feel confused. What am I doing wrong here?
>
> Nothing --- there isn't any box @> point operator, although there
> is the commutator case point <@ box.  (I see Teodor fixed this
> omission for 9.0.)


I notice that @ is accepted as an operator (at least in 8.4.1)?

box @ point is equivalent to box @> point
point @ box is equivalent to point <@ box

It's not listed in 8.4 doc pages online.

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Installing temporal "period" data type and support functions
Next
From: Sachin Srivastava
Date:
Subject: Fwd: Re: Fwd: StackBuilder can't fetch application list?