X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/3714b7ea7d5c269d21693564b81497ccb4056571..53f8459e974b025299a1329449a6483e443bdd27:/utils/setup.php diff --git a/utils/setup.php b/utils/setup.php index a9597da8..94087323 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -523,10 +523,6 @@ if ($aCMDResult['calculate-postcodes'] || $aCMDResult['all']) { if (!pg_query($oDB->connection, $sSQL)) fail(pg_last_error($oDB->connection)); } - - echo "Indexing postcodes....\n"; - $sSQL = 'UPDATE location_postcode SET indexed_status = 0'; - if (!pg_query($oDB->connection, $sSQL)) fail(pg_last_error($oDB->connection)); } if ($aCMDResult['osmosis-init']) { @@ -543,6 +539,10 @@ if ($aCMDResult['index'] || $aCMDResult['all']) { passthruCheckReturn($sBaseCmd.' -r 5 -R 25'); if (!$aCMDResult['index-noanalyse']) pgsqlRunScript('ANALYSE'); passthruCheckReturn($sBaseCmd.' -r 26'); + + echo "Indexing postcodes....\n"; + $sSQL = 'UPDATE location_postcode SET indexed_status = 0'; + if (!pg_query($oDB->connection, $sSQL)) fail(pg_last_error($oDB->connection)); } if ($aCMDResult['create-search-indices'] || $aCMDResult['all']) {