]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/update.php
preserve admin level hierarchy between admin boundaries
[nominatim.git] / utils / update.php
index 9bb3388a1598a24ced032b8a03aa0607aeef3fa4..fdc955ea26fa9a7e680f7f6d243c0f3d90752d58 100644 (file)
@@ -92,8 +92,10 @@ if (!is_null(CONST_Osm2pgsql_Flatnode_File) && CONST_Osm2pgsql_Flatnode_File) {
     $oOsm2pgsqlCmd->addParams('--flat-nodes', CONST_Osm2pgsql_Flatnode_File);
 }
 if ($fPostgresVersion >= 11.0) {
     $oOsm2pgsqlCmd->addParams('--flat-nodes', CONST_Osm2pgsql_Flatnode_File);
 }
 if ($fPostgresVersion >= 11.0) {
-    $oOsm2pgsqlCmd->addEnvPair('PGOPTIONS',
-                               '-c jit=off -c max_parallel_workers_per_gather=0');
+    $oOsm2pgsqlCmd->addEnvPair(
+        'PGOPTIONS',
+        '-c jit=off -c max_parallel_workers_per_gather=0'
+    );
 }
 
 
 }
 
 
@@ -149,7 +151,6 @@ if ($aResult['init-updates']) {
                                       'enable-diff-updates' => true,
                                       'verbose' => $aResult['verbose']
                                      ));
                                       'enable-diff-updates' => true,
                                       'verbose' => $aResult['verbose']
                                      ));
-        $cSetup->connect();
         $cSetup->createFunctions();
     }
 
         $cSetup->createFunctions();
     }