Skip to content

Commit

Permalink
Write PostGIS version to output when osm2pgsql starts up
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Jan 8, 2021
1 parent c3eb0fb commit c7927e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/db-check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ void check_db(options_t const &options)
get_minimum_postgresql_server_version())};
}

auto const postgis_version = get_postgis_version(db_connection);
log_info("PostGIS version: {}.{}", postgis_version.major,
postgis_version.minor);

// If we are in append mode and the middle nodes table isn't there,
// it probably means we used a flat node store when we created this
// database. Check for that and stop if it looks like we are missing
Expand Down

0 comments on commit c7927e8

Please sign in to comment.