<p></p>
<p dir="auto">I don't think checks like this are something we would want to have in osm2pgsql itself. But I have a (currently work-in-progress) Python script which bundles some convenient "database helper" functions. One of the things it offers is a "database check" function that will check a few things in your database related to osm2pgsql, like whether PostGIS is enabled and whether you use UTF-8 encoding. A check like this might fit in there.</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-8489900">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353W5A7E6BOHP7I2OUHDYT4OUZAVCNFSM6AAAAABDK5MIASVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DIOBZHEYDA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353SBJPJH6AGCTJQVUXTYT4OUZA5CNFSM6AAAAABDK5MIASWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAQGF2Y.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/8489900</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-8489900",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2140#discussioncomment-8489900",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>