Updated the loader to create the index after the data has been loaded.

git-svn-id: http://svn.osgeo.org/postgis/trunk@2667 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Mark Leslie 2007-07-23 16:29:40 +00:00
parent c70a144dbd
commit 369b892a5a

View file

@ -422,16 +422,16 @@ main (int ARGC, char **ARGV)
*/
if(opt != 'a') CreateTable();
/*
* Create GiST index if requested
*/
if(createindex) CreateIndex();
/*
* Generate INSERT or COPY lines
*/
if(opt != 'p') LoadData();
/*
* Create GiST index if requested
*/
if(createindex) CreateIndex();
printf("END;\n"); /* End the last transaction */