]> granicus.if.org Git - postgis/commitdiff
shp2pgsql gui wrong use of create spatial index (#1091)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 17 Sep 2011 19:59:41 +0000 (19:59 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 17 Sep 2011 19:59:41 +0000 (19:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7862 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-core.c

index b926f40d229291685db515da559301ea481e97dd..846b39fde5730356aba6e15743e79ae886a4b451 100644 (file)
@@ -1711,12 +1711,6 @@ ShpLoaderGetSQLFooter(SHPLOADERSTATE *state, char **strfooter)
 {
        stringbuffer_t *sb;
        char *ret;
-       char *ops;
-
-       if ( state->config->geography )
-               ops = "gist_geography_ops";
-       else
-               ops = "gist_geometry_ops";
 
        /* Create the stringbuffer containing the header; we use this API as it's easier
           for handling string resizing during append */
@@ -1732,7 +1726,7 @@ ShpLoaderGetSQLFooter(SHPLOADERSTATE *state, char **strfooter)
                {
                        stringbuffer_aprintf(sb, "\"%s\".",state->config->schema);
                }
-               stringbuffer_aprintf(sb, "\"%s\" USING GIST (\"%s\" %s)", state->config->table, state->geo_col, ops);
+               stringbuffer_aprintf(sb, "\"%s\" USING GIST (\"%s\")", state->config->table, state->geo_col);
                /* Tablespace is also optional. */
                if (state->config->idxtablespace != NULL)
                {