From: Sarah Hoffmann Date: Tue, 18 Apr 2017 20:11:58 +0000 (+0200) Subject: send address interpolation import to correct postgres conn X-Git-Tag: v3.0.0~40 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/19edbd358198355094485ffa7ac869af0cae6c90 send address interpolation import to correct postgres conn --- diff --git a/utils/setup.php b/utils/setup.php index 0814794f..57a2de16 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -378,7 +378,7 @@ if ($aCMDResult['load-data'] || $aCMDResult['all']) { $sSQL .= ' SELECT osm_id, address, geometry from place where '; $sSQL .= "class='place' and type='houses' and osm_type='W' and ST_GeometryType(geometry) = 'ST_LineString'"; if ($aCMDResult['verbose']) echo "$sSQL\n"; - if (!pg_send_query($aDBInstances[$i]->connection, $sSQL)) fail(pg_last_error($oDB->connection)); + if (!pg_send_query($aDBInstances[$iLoadThreads]->connection, $sSQL)) fail(pg_last_error($oDB->connection)); $bAnyBusy = true; while ($bAnyBusy) {