Re: operator @> does not work with box.

From: Frank Bax <fbax(at)sympatico(dot)ca>
To:
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: operator @> does not work with box.
Date: 2010-09-02 23:18:43
Message-ID: BLU0-SMTP5124143E113078E25257CDAC8C0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Tom Lane wrote:
> A B <gentosaker(at)gmail(dot)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.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Md. Aminul Islam Khan 2010-09-03 06:41:00 Re: Starting postgres at boot
Previous Message Tom Lane 2010-09-02 17:46:45 Re: Installing temporal "period" data type and support functions