<p></p>
<p>Very strange, I can not see it here: <a href="https://github.com/openstreetmap/osm2pgsql/blob/e15cd1a619788ad168818149c17fb08a76eeb05a/src/output-flex.cpp#L1543-L1558">https://github.com/openstreetmap/osm2pgsql/blob/e15cd1a619788ad168818149c17fb08a76eeb05a/src/output-flex.cpp#L1543-L1558</a></p>
<p>But why I did think it's stage 2: about 09:30 in the morning I've run <code>top</code> and saw <code>postgres: 11/main: andrey gis [local] DELETE</code> running for about 7 hours and consuming 100% CPU. I went to see what query it was exactly executing and there was something like <code>DELETE FROM osm_lines WHERE id IN (... lots of ids ...)</code>. That's why I thought it's about stage 2 line processing.</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/issues/1436#issuecomment-807137368">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353WN5J2BSBUQWB3GP73TFNWWZANCNFSM4ZZHGTSQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353VXVJ2DOP36F2RHUODTFNWWZA5CNFSM4ZZHGTS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGAN7AWA.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/issues/1436#issuecomment-807137368",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1436#issuecomment-807137368",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>