<p>I got this log:</p>
<pre><code>$ nice -n 19 /home/mdione/src/projects/osm2pgsql/build/osm2pgsql --create --unlogged --username mdione --database gis --cache 1024 --number-processes 4 --verbose --slim --flat-nodes ../../nodes.cache --hstore --multi-geometry --style ../../osm-carto/openstreetmap-carto.style --tag-transform-script ../../osm-carto/openstreetmap-carto.lua --drop argentina-latest.osm.pbf
osm2pgsql version 0.95.0-dev (64 bit id space)
Using lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua
Using projection SRS 3857 (Spherical Mercator)
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=1024MB, maxblocks=16384*65536, allocation method=11
Mid: loading persistent node cache from ../../nodes.cache
Mid: pgsql, cache=1024
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Reading in file: argentina-latest.osm.pbf
Using PBF parser.
Processing: Node(15260k 37.6k/s) Way(1539k 23.69k/s) Relation(33270 756.14/s) parse time: 515s
Node stats: total(15260203), max(4818789370) in 406s
Way stats: total(1539595), max(489654503) in 65s
Relation stats: total(33522), max(7191564) in 44s
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 lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua
Going over pending ways...
359263 ways are pending
Using 4 helper-processes
Finished processing 359263 ways in 26 s
359263 Pending ways took 26s at a rate of 13817.81/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
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
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
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Going over pending relations...
0 relations are pending
Using 4 helper-processes
Finished processing 0 relations in 0 s
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Committing transaction for planet_osm_point
WARNING: there is no transaction in progress
Committing transaction for planet_osm_line
WARNING: there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING: there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING: there is no transaction in progress
Mid: removing persistent node cache at ../../nodes.cache
node cache: stored: 15260203(100.00%), storage efficiency: 50.29% (dense blocks: 77, sparse nodes: 14855433), hit rate: 99.98%
Stopping table: planet_osm_nodes
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Stopped table: planet_osm_nodes in 0s
Stopped table: planet_osm_rels in 0s
Stopped table: planet_osm_ways in 0s
Stopping table: planet_osm_nodes
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Osm2pgsql failed due to ERROR: DROP TABLE planet_osm_nodes failed: connection pointer is NULL
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/813#issuecomment-358317946">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7vXqDwwGAoNeccU7clnjVMUyp4Boks5tLgFbgaJpZM4RdYHk">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7sqcBC3jX4zxbtmn1qpJH0ArmvLxks5tLgFbgaJpZM4RdYHk.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/pull/813#issuecomment-358317946"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/osm2pgsql","title":"openstreetmap/osm2pgsql","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/osm2pgsql"}},"updates":{"snippets":[{"icon":"PERSON","message":"@StyXman in #813: I got this log:\r\n\r\n```\r\n$ nice -n 19 /home/mdione/src/projects/osm2pgsql/build/osm2pgsql --create --unlogged --username mdione --database gis --cache 1024 --number-processes 4 --verbose --slim --flat-nodes ../../nodes.cache --hstore --multi-geometry --style ../../osm-carto/openstreetmap-carto.style --tag-transform-script ../../osm-carto/openstreetmap-carto.lua --drop argentina-latest.osm.pbf\r\nosm2pgsql version 0.95.0-dev (64 bit id space)\r\n\r\nUsing lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua\r\nUsing projection SRS 3857 (Spherical Mercator)\r\nSetting up table: planet_osm_point\r\nSetting up table: planet_osm_line\r\nSetting up table: planet_osm_polygon\r\nSetting up table: planet_osm_roads\r\nAllocating memory for dense node cache\r\nAllocating dense node cache in one big chunk\r\nAllocating memory for sparse node cache\r\nSharing dense sparse\r\nNode-cache: cache=1024MB, maxblocks=16384*65536, allocation method=11\r\nMid: loading persistent node cache from ../../nodes.cache\r\nMid: pgsql, cache=1024\r\nSetting up table: planet_osm_nodes\r\nSetting up table: planet_osm_ways\r\nSetting up table: planet_osm_rels\r\n\r\nReading in file: argentina-latest.osm.pbf\r\nUsing PBF parser.\r\nProcessing: Node(15260k 37.6k/s) Way(1539k 23.69k/s) Relation(33270 756.14/s) parse time: 515s\r\nNode stats: total(15260203), max(4818789370) in 406s\r\nWay stats: total(1539595), max(489654503) in 65s\r\nRelation stats: total(33522), max(7191564) in 44s\r\nCommitting transaction for planet_osm_point\r\nCommitting transaction for planet_osm_line\r\nCommitting transaction for planet_osm_polygon\r\nCommitting transaction for planet_osm_roads\r\nSetting up table: planet_osm_nodes\r\nSetting up table: planet_osm_ways\r\nSetting up table: planet_osm_rels\r\nUsing lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua\r\nSetting up table: planet_osm_nodes\r\nSetting up table: planet_osm_ways\r\nSetting up table: planet_osm_rels\r\nUsing lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua\r\nSetting up table: planet_osm_nodes\r\nSetting up table: planet_osm_ways\r\nSetting up table: planet_osm_rels\r\nUsing lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua\r\nSetting up table: planet_osm_nodes\r\nSetting up table: planet_osm_ways\r\nSetting up table: planet_osm_rels\r\nUsing lua based tag processing pipeline with script ../../osm-carto/openstreetmap-carto.lua\r\n\r\nGoing over pending ways...\r\n 359263 ways are pending\r\n\r\nUsing 4 helper-processes\r\n\r\nFinished processing 359263 ways in 26 s\r\n\r\n359263 Pending ways took 26s at a rate of 13817.81/s\r\nCommitting transaction for planet_osm_point\r\nCommitting transaction for planet_osm_line\r\nCommitting transaction for planet_osm_polygon\r\nCommitting transaction for planet_osm_roads\r\nCommitting transaction for planet_osm_point\r\nCommitting transaction for planet_osm_line\r\nCommitting transaction for planet_osm_polygon\r\nCommitting transaction for planet_osm_roads\r\nCommitting transaction for planet_osm_point\r\nCommitting transaction for planet_osm_line\r\nCommitting transaction for planet_osm_polygon\r\nCommitting transaction for planet_osm_roads\r\nCommitting transaction for planet_osm_point\r\nCommitting transaction for planet_osm_line\r\nCommitting transaction for planet_osm_polygon\r\nCommitting transaction for planet_osm_roads\r\n\r\nGoing over pending relations...\r\n 0 relations are pending\r\n\r\nUsing 4 helper-processes\r\nFinished processing 0 relations in 0 s\r\n\r\nCommitting transaction for planet_osm_point\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_line\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_polygon\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_roads\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_point\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_line\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_polygon\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_roads\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_point\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_line\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_polygon\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_roads\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_point\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_line\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_polygon\r\nWARNING: there is no transaction in progress\r\nCommitting transaction for planet_osm_roads\r\nWARNING: there is no transaction in progress\r\nMid: removing persistent node cache at ../../nodes.cache\r\nnode cache: stored: 15260203(100.00%), storage efficiency: 50.29% (dense blocks: 77, sparse nodes: 14855433), hit rate: 99.98%\r\nStopping table: planet_osm_nodes\r\nStopping table: planet_osm_ways\r\nStopping table: planet_osm_rels\r\nStopped table: planet_osm_nodes in 0s\r\nStopped table: planet_osm_rels in 0s\r\nStopped table: planet_osm_ways in 0s\r\nStopping table: planet_osm_nodes\r\nStopping table: planet_osm_ways\r\nStopping table: planet_osm_rels\r\nOsm2pgsql failed due to ERROR: DROP TABLE planet_osm_nodes failed: connection pointer is NULL\r\n```"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/osm2pgsql/pull/813#issuecomment-358317946"}}}</script>