DROP TABLE IF EXISTS points;
CREATE TABLE IF NOT EXISTS points (id bigserial, p point);
INSERT INTO points (p) SELECT point(1, 1) FROM generate_series(1,2000000);
CREATE INDEX ipoints ON POINTS USING spgist(p);
DELETE FROM points;
VACUUM;
