From 22b7aed769fed5e0bcc31479a65869437cb2d5dd Mon Sep 17 00:00:00 2001 From: marc tobias Date: Mon, 23 Dec 2019 21:25:06 +0100 Subject: [PATCH] Use check_import_finished in test suite, document --- .travis.yml | 1 + docs/admin/Import-and-Update.md | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 -- 2.39.5