<p></p>
<p dir="auto">I noticed osm2pgsql currently happily starts an import session with outdated PostGIS core procedures. While this may not be directly critical, and somewhat out of the responsibility of osm2pgsql, I still think it is good practice to refuse import in such a configuration.</p>
<p dir="auto">I run some own software written in Python, and have been bitten by this issue in my own code, and have since adjusted my own tool to issue a warning if outdated PostGIS core procedures are detected upon start up, and block processing if so.</p>
<p dir="auto">I find this really helpful to not forget to update the core procedures after a PostGIS update. Especially novice users are usually unaware of the need to do so, and may run into issues.</p>
<p dir="auto">This situation can be easily detected by parsing the string returned by <code class="notranslate">SELECT PostGIS_Full_Version();</code>, which often is already a requirement in software development related to PostGIS to detect other (version) incompatibilities.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2140">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353UR7UB6OMZRD7UML5LYTZWG5AVCNFSM6AAAAABDK5MIASVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGIZDGNRYGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353US4PKDZ7JAN7FCC6TYTZWG5A5CNFSM6AAAAABDK5MIASWGG33NNVSW45C7OR4XAZNKIRUXGY3VONZWS33OVJRW63LNMVXHIX3JMTHAAXXXII.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><osm2pgsql-dev/osm2pgsql/repo-discussions/2140</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2140",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2140",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>