<p>Right after startup, connect to the database and print and check the<br>
database version.</p>
<p>This introduced a new function check_db() which does this check and can<br>
later be extended to do other checks on the database, for instance the<br>
PostGIS version etc.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/osm2pgsql/pull/1280'>https://github.com/openstreetmap/osm2pgsql/pull/1280</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Print database version and do version check after startup</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-af3b638bc2a3e6c650974192a53c7291">CMakeLists.txt</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-95e351a3805a1dafa85bf20b81d086e6">src/CMakeLists.txt</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-97aada18ace2c5953d173643459440f1">src/db-check.cpp</a>
    (29)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-ee7449e954b949fb16405a7d6c359f8f">src/db-check.hpp</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-faaea964870887b7bf7a4925ed64850f">src/osm2pgsql.cpp</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-e0fb445b8a9938686a57727bc56c43af">src/pgsql.cpp</a>
    (21)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-854b1f48c0bd230145e05062d3842a87">src/pgsql.hpp</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-7d6c54d25f0d62a4ccbda175a7260b34">src/version.cpp.in</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280/files#diff-24a47f290edd4ca635919a7f863c3e0c">src/version.hpp</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1280.patch'>https://github.com/openstreetmap/osm2pgsql/pull/1280.patch</a></li>
  <li><a href='https://github.com/openstreetmap/osm2pgsql/pull/1280.diff'>https://github.com/openstreetmap/osm2pgsql/pull/1280.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1280">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353R4IK3A7INYAZB36H3SJG4TRANCNFSM4SEUENYQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353SUOR3YZIIXC2EP3UDSJG4TRA5CNFSM4SEUENY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KU27WKA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1280",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1280",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>