From 8e8bbaab21ad6e5280e6c4936a957b147dafeef1 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Tue, 3 Feb 2015 10:22:24 -0800 Subject: [PATCH] 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. --- default.style | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/default.style b/default.style index 47abbd683..690f3d1f5 100644 --- a/default.style +++ b/default.style @@ -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