Index on points

Поиск
Список
Период
Сортировка
От A B
Тема Index on points
Дата
Msg-id AANLkTimXsxQnV+sa1+u9U1Hic1Kk2fdyEqZxhp3ehuPy@mail.gmail.com
обсуждение исходный текст
Ответы Re: Index on points  (Jeff Davis <pgsql@j-davis.com>)
Re: Index on points  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Hello.

If I have a table like this

create table fleet ( ship_id   integer,  location point);

and fill it with a lot of ships and their locations and then want to
create an index on this to speed up operations on finding ships within
a certain region (let's say its a rectangular region), how do I do
this?

I tried:

CREATE INDEX my_index  ON fleet USING gist ( box(location,location)); ?

and that command worked, but I have no idea why and what I have just
done. The docs are a little to advanced.

How should one do it?

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

Предыдущее
От:
Дата:
Сообщение: Re: Kill -9 for a session process caused all the sessions to be killed
Следующее
От: Vick Khera
Дата:
Сообщение: Re: What was new in 8.4 & 8.3?