]> gitweb.michael.orlitzky.com - dead/census-tools.git/blobdiff - sql/combine-block-tables.sql
ANALYZE the blocks table after it is created.
[dead/census-tools.git] / sql / combine-block-tables.sql
index 3f492068379d93ae855b83da44af53cef3692e9a..229cd66ff8d00daa23dae47868627f86a5031339 100644 (file)
@@ -19,3 +19,9 @@ INSERT INTO blocks
 
 DROP TABLE sf1_blocks;
 DROP TABLE tiger_blocks;
+
+/* We have to re-create the GiST index on the new table as well. */
+CREATE INDEX idx_geometry_gist ON blocks USING gist(the_geom);
+
+/* And generate some statistics. */
+ANALYZE blocks;