From c7927e8332c017dac00a93e6690af9e00b1f34c1 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 8 Jan 2021 16:15:27 +0100 Subject: [PATCH] Write PostGIS version to output when osm2pgsql starts up --- src/db-check.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/db-check.cpp b/src/db-check.cpp index b450f27e0..ebd60f89a 100644 --- a/src/db-check.cpp +++ b/src/db-check.cpp @@ -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