[Tile-serving] [openstreetmap/osm2pgsql] Print database version and do version check after startup (#1280)

Jochen Topf notifications at github.com
Mon Oct 5 12:36:08 UTC 2020


Right after startup, connect to the database and print and check the
database version.

This introduced a new function check_db() which does this check and can
later be extended to do other checks on the database, for instance the
PostGIS version etc.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1280

-- Commit Summary --

  * Print database version and do version check after startup

-- File Changes --

    M CMakeLists.txt (3)
    M src/CMakeLists.txt (1)
    A src/db-check.cpp (29)
    A src/db-check.hpp (8)
    M src/osm2pgsql.cpp (3)
    M src/pgsql.cpp (21)
    M src/pgsql.hpp (5)
    M src/version.cpp.in (16)
    M src/version.hpp (2)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1280.patch
https://github.com/openstreetmap/osm2pgsql/pull/1280.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1280
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20201005/ac88ccf4/attachment.htm>


More information about the Tile-serving mailing list