Created
May 12, 2015 11:11
-
-
Save walkermatt/66a675a423acc28d0637 to your computer and use it in GitHub Desktop.
CREATE INDEX
This file contains hidden or 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
SELECT 'CREATE INDEX ' || quote_ident(f_table_name || '_geom_idx') || ' ON ' || quote_ident(f_table_schema) || '.' || quote_ident(f_table_name) || ' USING GIST (' || quote_ident(f_geometry_column) || ');' AS SQL | |
FROM geometry_columns | |
WHERE f_table_name IN ('topographicarea', | |
'topographicline'); |
This file contains hidden or 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
sql | |
------------------------------------------------------------------------------------------------ | |
CREATE INDEX topographicarea_geom_idx ON osmm_topo2.topographicarea USING GIST (wkb_geometry); | |
CREATE INDEX topographicline_geom_idx ON osmm_topo2.topographicline USING GIST (wkb_geometry); | |
CREATE INDEX topographicline_geom_idx ON osmm_topo.topographicline USING GIST (wkb_geometry); | |
CREATE INDEX topographicarea_geom_idx ON osmm_topo.topographicarea USING GIST (wkb_geometry); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome!! This worked perfectly, thanks!!
(Mental note: brush up on SQL skills.....)