Type POINT and index - Mailing list pgsql-general

From Ben-Nes Michael
Subject Type POINT and index
Date
Msg-id 003801c17e6a$4adfd220$aa0f5ac2@canaan.co.il
Whole thread Raw
List pgsql-general
Hi All

I made this little talbe:
CREATE TABLE location (
loc_id SERIAL PRIMARY KEY,
cordinata POINT NOT NULL
);

I want to index the column "cordinata" with "RTREE" so I can scan it fast
and find easily distance or other GIS information.

When I try to index the column it keep asking me about operator, which
should I choose ?

I need thing like: select all other coordinates that are in Radius of 100
units.

Is it possible ?

--------------------------
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--------------------------



pgsql-general by date:

Previous
From: Eric Crampton
Date:
Subject: Re: Number of Connections
Next
From: Colm McCartan
Date:
Subject: Re: Two very basic questions..