[OSM-dev] osm2pgsql for 64-bit IDs

Stefan de Konink stefan at konink.de
Sat May 21 16:18:23 BST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Op 21-05-11 16:52, Jochen Topf schreef:
> If we use unsigned ints we have some more time. Problematic would only be
> a few cases where negative IDs are currently used (like in JOSM for data
> thats not yet uploaded to the server). But it seems wasteful to me, to go
> to 64bit a year or so earlier than needed to accommodate this case.

Don't forget the binary format (PBF) also was basically twisted around
to accommodate for negative numbers. Your suggestion makes sense, there
shouldn't be negative IDs. And additional making the value NOT NULL in
the database, also gives one bit extra.

Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEAREKAAYFAk3X174ACgkQYH1+F2Rqwn2pfACfRSmILv18t39YecJjrJxvOTaN
o7sAmwb5xMnHPwkKYtAGu1fcSGydg1AE
=H/3R
-----END PGP SIGNATURE-----



More information about the dev mailing list