I downloaded osm2pgsql for Windows from AppVeyor (https://ci.appveyor.com/api/projects/openstreetmap/osm2pgsql/artifacts/osm2pgsql_Release_x64.zip?tag=0.96.0&job=Environment%3A%20arch%3Dx64) and osm-data from Geofabrik (http://download.geofabrik.de/europe/germany/bayern-latest.osm.pbf).
I tried to use osm2pgsql to transfer that data to a local PostgreSQL database by running
osm2pgsql.exe -d <my_database> -c -k -s -S <my_stylefile> -P <my_port> -U <my_username> -H <my_hostname> bayern-latest.osm.pbf
Prior to running this command I made sure to store my password in the PGPASS environment variable.
My PostgreSQL database has the following extensions: hstore, plpgsql, postgis. I used the slim-option (-s) when calling osm2pgsql because I need access to the temporary data stored in the planet_osm_nodes table.
The tags specified in the style file are:
# OsmType Tag DataType Flags node,way power text polygon node,way cables text linear node,way voltage text linear node,way wires text linear
After the successful execution of osm2pgsql, each of the tables "planet_osm_line", "planet_osm_point" and "planet_osm_polygon" inside my PostgreSQL database contain the columns "osm_id", "power", "cables", "voltage", "wires", "tags" and "way". The table "planet_osm_ways" contains the columns "id", "nodes", "tags".
My problem is that the table "planet_osm_nodes" only has the three columns "id", "lat", "lon" but no column "tags".
I am calling osm2pgsql from within a tool called GridKit (https://github.com/bdw/GridKit) and that tool absolutely needs the "tags" column to further process the data.
Do you know why this column is missing in the table "planet_osm_nodes" and what I can do about it?