Add recommended types to columns for extra attributes

By using non-text types the columns are small, indexes are smaller,
and inequality and range compairsons are possible.

osm_changeset was, oddly, missing.
This commit is contained in:
Paul Norman
2015-02-03 10:22:24 -08:00
parent ed86d635cb
commit 8e8bbaab21

View File

@ -68,10 +68,14 @@
# way_area - datatype real. The area of the way, in the units of the projection
# (e.g. square mercator meters). Only applies to areas
#
# osm_user, osm_uid, osm_version, osm_timestamp - datatype text. Used with the
# --extra-attributes option to include metadata in the database. If importing
# with both --hstore and --extra-attributes the meta-data will end up in the
# tags hstore column regardless of the style file.
# osm_user - datatype text
# osm_uid - datatype integer
# osm_version - datatype integer
# osm_changeset - datatype integer
# osm_timestamp - datatype timestamptz(0).
# Used with the --extra-attributes option to include metadata in the database.
# If importing with both --hstore and --extra-attributes the meta-data will
# end up in the tags hstore column regardless of the style file.
# OsmType Tag DataType Flags
node,way access text linear