This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Empty nodes

0

Why some number of element id keep empty even the greater number has been used

E.g.

https://www.openstreetmap.org/node/6358775424

Not found

but +1000

https://www.openstreetmap.org/node/6358776424

Is used, as one node that part of the way with id 679072985, tagged as barrier=hedge by Ninjoh on 2019-03-24T17:46:52Z

Why some number keep from uses? Thanks for explaining.

asked 04 Sep '22, 14:40

MY5DVrAr0e599Japan's gravatar image

MY5DVrAr0e59...
11223
accept rate: 0%


One Answer:

3

This is an internal implementation detail in the way PostgreSQL manages its unique sequences. Sometimes new IDs are assigned but then not used e.g. because of a transaction rollback or other technical reasons. Therefore, our documentation makes no assurances about IDs other than that they are unique. They can have gaps, and it can even be possible that an object with a smaller ID is created after an object with a larger ID.

answered 04 Sep '22, 18:49

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .