Re: No ~ operator for box, point - Mailing list pgsql-hackers

From Jim Nasby
Subject Re: No ~ operator for box, point
Date
Msg-id A16447CF-1CF7-47C7-AE63-8BAB47E4C151@nasby.net
Whole thread Raw
In response to Re: No ~ operator for box, point  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: No ~ operator for box, point  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Jan 25, 2007, at 6:26 PM, Tom Lane wrote:
> Martijn van Oosterhout <kleptog@svana.org> writes:
>> On Thu, Jan 25, 2007 at 01:59:33PM -0500, Merlin Moncure wrote:
>>> On 1/25/07, Jim C. Nasby <jim@nasby.net> wrote:
>>>> decibel=# select box '((0,0),(2,2))' ~ point '(1,1)';
>>>> ERROR:  operator does not exist: box ~ point
>>>
>>> I don't see a reason, although you can do it with polygon and not  
>>> box.
>
> Seems like an old oversight.

Ok. If I ever get some time I'll submit a patch to bring everything  
in-line (there's other missing operators as well).

>>> Also, I can't find the ~ operator defined for polygon in the
>>> documentation, am I missing something?
>
> ~ is deprecated, "contains" is preferentially spelled @> now.

Ok, I'll keep that in mind.
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)




pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: VC2005 build and pthreads
Next
From: Tom Lane
Date:
Subject: Re: Recursive query syntax ambiguity