Re: Index on points

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Index on points
Дата
Msg-id 20040608130824.GA1291@wolff.to
обсуждение исходный текст
Ответ на Index on points  (Holger Klawitter <lists@klawitter.de>)
Ответы Re: Index on points  (Holger Klawitter <lists@klawitter.de>)
Список pgsql-general
On Tue, Jun 08, 2004 at 14:17:57 +0200,
  Holger Klawitter <lists@klawitter.de> wrote:
>
> Hi there,
>
> which operator class can I use in order to search points by distance like in:
>
> SELECT p FROM tbl WHERE (p <-> point(0,0)) < 10;
>
> - From what I've seen, there is none - which surprises me ...

You want to create a box that includes all points that might match
and use that to do an index search (using an rtree index) and then
check that the distance is really less than whatever.

В списке pgsql-general по дате отправления:

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: problem with inserting a generated seq no into not null field
Следующее
От:
Дата:
Сообщение: Re: [HACKERS] The pgreplication project