[postgis-commits] svn - r2667 - trunk/loader
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Mon Jul 23 09:29:43 PDT 2007
Author: mleslie
Date: 2007-07-23 09:29:40 -0700 (Mon, 23 Jul 2007)
New Revision: 2667
Modified:
trunk/loader/shp2pgsql.c
Log:
Updated the loader to create the index after the data has been loaded.
Modified: trunk/loader/shp2pgsql.c
===================================================================
--- trunk/loader/shp2pgsql.c 2007-07-20 04:29:35 UTC (rev 2666)
+++ trunk/loader/shp2pgsql.c 2007-07-23 16:29:40 UTC (rev 2667)
@@ -423,14 +423,14 @@
if(opt != 'a') CreateTable();
/*
- * Create GiST index if requested
+ * Generate INSERT or COPY lines
*/
- if(createindex) CreateIndex();
+ if(opt != 'p') LoadData();
/*
- * Generate INSERT or COPY lines
+ * Create GiST index if requested
*/
- if(opt != 'p') LoadData();
+ if(createindex) CreateIndex();
printf("END;\n"); /* End the last transaction */
More information about the postgis-commits
mailing list