Created
August 1, 2012 19:29
-
-
Save marekjelen/3229952 to your computer and use it in GitHub Desktop.
Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE pois | |
( | |
id serial NOT NULL, | |
name text NOT NULL, | |
created_at timestamp without time zone NOT NULL, | |
updated_at timestamp without time zone NOT NULL, | |
"position" geography(Point,4326), | |
CONSTRAINT pois_pkey PRIMARY KEY (id ), | |
CONSTRAINT pois_name_key UNIQUE (name ) | |
) | |
WITH ( | |
OIDS=FALSE | |
); | |
CREATE INDEX position_gix | |
ON pois | |
USING gist | |
("position" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment