Проблема следующая: с помощью osm2pgsql (версия 0.92.0 64 бита) в базу postgresql (9.3.16) размещены данные Planet OSM от 22.05.2017.
Данные успешно размещены, карта рендерится.
Далее пытаюсь с помощью того же osm2pgsql накатить обновления за неделю, выкачанные с http://planet.osm.org/planet/:
time osm2pgsql -a -s -l -C 30000 -d osm170522 -U user -W -H server -P 5432 changesets-170605.osm.bz2
Процесс завершается корректно, однако никакие обновления в базу не добавлены.
Судя по консольному выводу (приведен ниже), xml распарсен в ноль. Может, кто-то сталкивался? Или сама схема добавления обновлений должна быть иная?
Код: Выделить всё
Using built-in tag processing pipeline
Using projection SRS 4326 (Latlong)
Setting up table: planet_osm_point
Setting up table: planet_osm_line
Setting up table: planet_osm_polygon
Setting up table: planet_osm_roads
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=30000MB, maxblocks=480000*65536, allocation method=11
Mid: pgsql, scale=10000000 cache=30000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Reading in file: changesets-170605.osm.bz2
Using XML parser.
parse time: 807s
Node stats: total(0), max(0) in 0s
Way stats: total(0), max(0) in 0s
Relation stats: total(0), max(0) in 0s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
...
Going over pending ways...
0 ways are pending
Using 16 helper-processes
Finished processing 0 ways in 0 s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
...
Going over pending relations...
0 relations are pending
Using 16 helper-processes
Finished processing 0 relations in 0 s
Committing transaction for planet_osm_point
ПРЕДУПРЕЖДЕНИЕ: нет незавершённой транзакции
Committing transaction for planet_osm_line
ПРЕДУПРЕЖДЕНИЕ: нет незавершённой транзакции
Committing transaction for planet_osm_polygon
ПРЕДУПРЕЖДЕНИЕ: нет незавершённой транзакции
Committing transaction for planet_osm_roads
ПРЕДУПРЕЖДЕНИЕ: нет незавершённой транзакции
...
Completed planet_osm_point
Completed planet_osm_roads
Completed planet_osm_line
Completed planet_osm_polygon
Stopping table: planet_osm_nodes
Stopped table: planet_osm_nodes in 0s
Stopping table: planet_osm_ways
Stopped table: planet_osm_ways in 0s
Stopping table: planet_osm_rels
Stopped table: planet_osm_rels in 0s
node cache: stored: 0(-nan%), storage efficiency: -nan% (dense blocks: 0, sparse nodes: 0), hit rate: -nan%
Osm2pgsql took 811s overall
real 13m37.556s
user 24m27.071s
sys 1m23.516s