]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
rename ambiguous variables to make postgresql 8.4 happy
[nominatim.git] / utils / setup.php
index f520f47d044fa5ce925a8ed3e8444bb253e57397..9a238628e68522493383de8413e17620906388cd 100755 (executable)
                }
                pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/postgis.sql');
                pgsqlRunScriptFile(CONST_Path_Postgresql_Postgis.'/spatial_ref_sys.sql');
-               pgsqlRunDropAndRestore(CONST_BasePath.'/data/country_name.sql.bin');
+               pgsqlRunScriptFile(CONST_BasePath.'/data/country_name.sql');
                pgsqlRunScriptFile(CONST_BasePath.'/data/country_naturalearthdata.sql');
-               pgsqlRunDropAndRestore(CONST_BasePath.'/data/country_osm_grid.sql.bin');
+               pgsqlRunScriptFile(CONST_BasePath.'/data/country_osm_grid.sql');
                pgsqlRunScriptFile(CONST_BasePath.'/data/gb_postcode.sql');
                pgsqlRunScriptFile(CONST_BasePath.'/data/us_statecounty.sql');
                pgsqlRunScriptFile(CONST_BasePath.'/data/us_state.sql');
                if (isset($aCMDResult['index-output'])) $sOutputFile = ' -F '.$aCMDResult['index-output'];
                $sBaseCmd = CONST_BasePath.'/nominatim/nominatim -i -d '.$aDSNInfo['database'].' -t '.$iInstances.$sOutputFile;
                passthru($sBaseCmd.' -R 4');
-var_dump($sBaseCmd.' -r 15 -R 15');
                if (!$aCMDResult['index-noanalyse']) pgsqlRunScript('ANALYSE');
                passthru($sBaseCmd.' -r 5 -R 25');
                if (!$aCMDResult['index-noanalyse']) pgsqlRunScript('ANALYSE');