Fairly trivial to fix myself locally, but I thought I'd mention it in case someone wants to fix it centrally. The MAX_ID_NODE limit in http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/middle-ram.c is now insufficient to process the current planet file. Cheers, Andy