From: Sarah Hoffmann Date: Wed, 2 Dec 2020 17:27:18 +0000 (+0100) Subject: update osm2pgsql X-Git-Tag: v3.6.0~11^2 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/03349150678940034252f0a930abcad3826d2e5d update osm2pgsql Needs now an explicit switch to avoid propagating changes from nodes to ways to relations. --- diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index fd31f0fe..f16c9e60 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -201,6 +201,8 @@ class SetupFunctions $oCmd->addParams('--output', 'gazetteer'); $oCmd->addParams('--hstore'); $oCmd->addParams('--number-processes', 1); + $oCmd->addParams('--with-forward-dependencies', 'false'); + $oCmd->addParams('--log-progress', 'true'); $oCmd->addParams('--cache', $this->iCacheMemory); $oCmd->addParams('--port', $this->aDSNInfo['port']); diff --git a/osm2pgsql b/osm2pgsql index 94a50603..8e9704f2 160000 --- a/osm2pgsql +++ b/osm2pgsql @@ -1 +1 @@ -Subproject commit 94a5060353179f4cf3e92aa622a2aa5d1afa6fee +Subproject commit 8e9704f2d155172b7c5885c67892c27ac7521c5c diff --git a/utils/update.php b/utils/update.php index 7e90016c..135bf193 100644 --- a/utils/update.php +++ b/utils/update.php @@ -70,6 +70,8 @@ $oOsm2pgsqlCmd = (new \Nominatim\Shell(CONST_Osm2pgsql_Binary)) ->addParams('--latlong') ->addParams('--append') ->addParams('--slim') + ->addParams('--with-forward-dependencies', 'false') + ->addParams('--log-progress', 'true') ->addParams('--number-processes', 1) ->addParams('--cache', $iCacheMemory) ->addParams('--output', 'gazetteer')