pgsql-mid stores the member offset for relations in the planet_osm_rels table as smallints (way_off, rell_off columns). That means that the number of members it can safely handle is restricted to 32767. However, the limit is nowhere checked. Trying to import a larger relation leads to the error:
Osm2pgsql failed due to ERROR: insert_rel failed: ERROR: value "37945" is out of range for type smallint
This happened recently with relation 7066589.
osm2pgsql should drop relations that are too large early in the processing. What would a reasonable upper limit be?
pgsql-mid stores the member offset for relations in the planet_osm_rels table as smallints (way_off, rell_off columns). That means that the number of members it can safely handle is restricted to 32767. However, the limit is nowhere checked. Trying to import a larger relation leads to the error:
This happened recently with relation 7066589.
osm2pgsql should drop relations that are too large early in the processing. What would a reasonable upper limit be?