From: marc tobias Date: Mon, 23 Dec 2019 20:25:06 +0000 (+0100) Subject: Use check_import_finished in test suite, document X-Git-Tag: v3.5.0~113^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/22b7aed769fed5e0bcc31479a65869437cb2d5dd Use check_import_finished in test suite, document --- diff --git a/.travis.yml b/.travis.yml index 259b9d5b..25f7d8b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,5 +30,6 @@ script: - if [[ $TEST_SUITE == "monaco" ]]; then wget --no-verbose --output-document=../data/monaco.osm.pbf http://download.geofabrik.de/europe/monaco-latest.osm.pbf; fi - if [[ $TEST_SUITE == "monaco" ]]; then /usr/bin/env php ./utils/setup.php --osm-file ../data/monaco.osm.pbf --osm2pgsql-cache 1000 --all 2>&1 | grep -v 'ETA (seconds)'; fi - if [[ $TEST_SUITE == "monaco" ]]; then /usr/bin/env php ./utils/specialphrases.php --wiki-import | psql -d test_api_nominatim >/dev/null; fi + - if [[ $TEST_SUITE == "monaco" ]]; then /usr/bin/env php ./utils/check_import_finished.php; fi notifications: email: false diff --git a/docs/admin/Import-and-Update.md b/docs/admin/Import-and-Update.md index afda83b2..3c6f11d0 100644 --- a/docs/admin/Import-and-Update.md +++ b/docs/admin/Import-and-Update.md @@ -180,6 +180,15 @@ enough RAM for PostgreSQL and osm2pgsql as mentioned above. If the system starts swapping or you are getting out-of-memory errors, reduce the cache size or even consider using a flatnode file. +### Verify import finished + +Run this script to verify all required tables and indices got created successfully. + +```sh +./utils/check_import_finished.php +``` + + ## Tuning the database Accurate word frequency information for search terms helps PostgreSQL's query @@ -293,7 +302,9 @@ The following command will keep your database constantly up to date: ./utils/update.php --import-osmosis-all -(Note that even though the old name "import-osmosis-all" has been kept for compatibility reasons, Osmosis is not required to run this - it uses pyosmium behind the scenes.) +(Note that even though the old name "import-osmosis-all" has been kept for +compatibility reasons, Osmosis is not required to run this - it uses pyosmium +behind the scenes.) If you have imported multiple country extracts and want to keep them up-to-date, have a look at the script in