Skip to content

Commit c7927e8

Browse files
committed
Write PostGIS version to output when osm2pgsql starts up
1 parent c3eb0fb commit c7927e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/db-check.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ void check_db(options_t const &options)
4747
get_minimum_postgresql_server_version())};
4848
}
4949

50+
auto const postgis_version = get_postgis_version(db_connection);
51+
log_info("PostGIS version: {}.{}", postgis_version.major,
52+
postgis_version.minor);
53+
5054
// If we are in append mode and the middle nodes table isn't there,
5155
// it probably means we used a flat node store when we created this
5256
// database. Check for that and stop if it looks like we are missing

0 commit comments

Comments
 (0)