<p>If I read the code correctly, then osm2pgsql supports node IDs of up to 36bit IDs with cache-strategy sparse. I.e. up to 68719476736. As we have just roled into bit 32, we are still no where close to the limit that osm2pgsql supports.</p>

<p>osm2pgsql should still not segfault, but erroring out and requiring --cache-strategy sparse seems reasonable to me for these cases at the moment.</p>

<p>One can also increase the limit by changing <a href="https://github.com/openstreetmap/osm2pgsql/blob/master/node-ram-cache.c#L65">https://github.com/openstreetmap/osm2pgsql/blob/master/node-ram-cache.c#L65</a> But as it isn't currently necessary and it gobles up more virtual memory, I don't want to do it upstream. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/osm2pgsql/issues/23#issuecomment-17311234'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/g8smGCFOcVLF28Q-xX3zcbZOnvEVErrIUIS9wQQhfruEaCskRN1O6s3fgNd_i91K.gif' height='1' width='1'></p>