Re: Index on points

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: A B <gentosaker(at)gmail(dot)com>, postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: Re: Index on points
Date: 2010-09-25 18:04:33
Message-ID: 19784.1285437873@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> There's no reason that there couldn't be a point <@ box operator in the
> opclass, but nobody really uses these geometric types that come with
> core postgres (at least, not that I can tell).

Actually, as of 9.0 there is a point_ops opclass for GIST, with these
indexable operators:

>^(point,point)
<<(point,point)
>>(point,point)
<^(point,point)
~=(point,point)
<@(point,box)
<@(point,polygon)
<@(point,circle)

I agree that for any more than light-duty geometric work, you ought
to look at PostGIS.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-09-25 18:05:53 Re: 9.0RC1 error variable not found in subplan target lists
Previous Message Dmitriy Igrishin 2010-09-25 15:42:03 Re: 9.0RC1 error variable not found in subplan target lists