+-- osm2pgsql slim tables were on SSD just to speed up the import
+-- move them back to normal space
+ALTER INDEX planet_osm_nodes_pkey SET TABLESPACE "data";
+ALTER INDEX planet_osm_ways_nodes SET TABLESPACE "data";
+ALTER INDEX planet_osm_rels_parts SET TABLESPACE "data";
+
-- Indices used only during search and update.
-- These indices are created only after the indexing process is done.
echo "Please download and build osm2pgsql.\nIf it is already installed, check the path in your local settings (settings/local.php) file.\n";
fail("osm2pgsql not found in '$osm2pgsql'");
}
- $osm2pgsql .= ' --tablespace-slim-index ssd --tablespace-main-index ssd --tablespace-main-data ssd --tablespace-slim-data ssd';
+ $osm2pgsql .= ' --tablespace-slim-index ssd --tablespace-main-index ssd --tablespace-main-data ssd --tablespace-slim-data data';
$osm2pgsql .= ' -lsc -O gazetteer --hstore';
$osm2pgsql .= ' -C 16000';
$osm2pgsql .= ' -d '.$aDSNInfo['database'].' '.$aCMDResult['osm-file'];
echo '.';
}
echo "\n";
+ pgsqlRunScript('ALTER TABLE place SET TABLESPACE "data"');
echo "Reanalysing database...\n";
pgsqlRunScript('ANALYSE');
}