<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rustprooflabs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rustprooflabs">@rustprooflabs</a> As the moment there is no <code class="notranslate">--force</code> option or something like that but you have to either drop the database and create a new one or delete the <code class="notranslate">osm2pgsql_properties</code> table. But that's certainly something we could think about. I am worried though that people will just get into the habit of using <code class="notranslate">--force</code> and then it didn't buy us much. What do you think?</p>
<p dir="auto">I realize that this is quite a change compared to earlier behaviour, so maybe it is the wrong move here. I created this because I have been bitten twice already with this recently. The reason this is a bit more of a problem now than it was before is the <code class="notranslate">osm2pgsql_replication</code> table. It is created first thing in the database, even before, for instance, the input file is opened. So it is easy to clobber that table with an invalid osm2pgsql command line.</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/pull/2085#issuecomment-1732652376">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353QXNBK245BC4QHK523X4CD3JANCNFSM6AAAAAA5EZ66OA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353WEYODQHWL5YS67HFLX4CD3JA5CNFSM6AAAAAA5EZ66OCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTHIYWVQ.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/pull/2085/c1732652376</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/pull/2085#issuecomment-1732652376",
"url": "https://github.com/osm2pgsql-dev/osm2pgsql/pull/2085#issuecomment-1732652376",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>