[OSM-dev] osm2pgsql default database change

Paul Norman penorman at mac.com
Tue Feb 7 03:35:15 UTC 2017


The behavior of osm2pgsql when no database is specified is changing in 
the next release. New releases will rely on libpq to pick the database 
if nothing is explicitly specified, typically either resulting in a 
database of what the PGDATABASE environment variable is set to, or the 
user's name.

If you are writing scripts that call osm2pgsql and rely on the default 
behavior, you should add --database gis to your command line. This is a 
good practice, even if you don't plan on updating.

Details on the change are at 
https://github.com/openstreetmap/osm2pgsql/pull/685




More information about the dev mailing list