<p></p>
<p dir="auto">We currently check PostGIS versions by querying the PostgreSQL extension table. I wonder if it would be better to query <code class="notranslate">PostGIS_Lib_Version()</code> instead. As a bonus, this would cause an early failure if PostGIS functions do not execute successfully.</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#discussioncomment-8495772">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353V4ZHIY6BDWV67QUB3YT6O75AVCNFSM6AAAAABDK5MIASVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DIOJVG43TE">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353UINWY32ONW57RCC2DYT6O75A5CNFSM6AAAAABDK5MIASWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAQGRJY.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/comments/8495772</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#discussioncomment-8495772",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2140#discussioncomment-8495772",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>