<p></p>
<p><b>@lonvia</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/1438#discussion_r602793606">src/output-flex.cpp</a>:</p>
<pre style='color:#555'>> @@ -1294,7 +1294,7 @@ void output_flex_t::delete_from_table(table_connection_t *table_connection,
     assert(table_connection);
     auto const id = table_connection->table().map_id(type, osm_id);
 
-    if (table_connection->table().has_geom_column()) {
+    if (!m_options.create && table_connection->table().has_geom_column()) {
</pre>
<p>You should rather skip this when expire is not enabled, which may also be the case for updates.</p>

<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/1438#pullrequestreview-622702586">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353SQFJRDSCLNBMEBIM3TFZD3VANCNFSM4Z5H4HWQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353WKA5POZNZDTPEDKLDTFZD3VA5CNFSM4Z5H4HW2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEUO276Q.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/1438#pullrequestreview-622702586",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1438#pullrequestreview-622702586",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>