CREATE TABLE polygontable (
id SERIAL PRIMARY KEY,
name VARCHAR(128),
geom GEOMETRY(POLYGON, 26910)
);
CREATE INDEX polygontable_gix ON polygontable USING GIST (geom);
INSERT INTO polygontable (name, geom) VALUES ('p1',
ST_GeomFromText('POLYGON((4 0,8 0,8 4,4 0))', 26910)
);
INSERT INTO polygontable (name, geom) VALUES ('p2',
ST_GeomFromText('POLYGON((1 1, 2 1, 2 2, 1 2,1 1))', 26910)
);