<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/joto/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joto">@joto</a></p>
<p dir="auto">If I need to determine if this is a PostgreSQL issue or osm2pgsql one, it would be helpful if you could answer two minor questions. These are probably easily answered, as likely not requiring more than a superficial look at the osm2pgsql code, or maybe you can even answer them from the top of your head knowing the code base so well:</p>
<ul dir="auto">
<li>Does osm2pgsql run ANALYZE directly after creating the indexes on the "osm_id" columns, so the PostgreSQL planner is garantueed to know of their existence and usefulness before osm2pgsql starts emitting the DELETE statements for the "There are X ways to reprocess" stage?</li>
<li>How many "osm_id" values are included in each batch as defined by the DELETE's "IN" clause? 100, 1000, 10k? If I need to simulate what osm2pgsql does in order to reproduce the issue in PostgreSQL without involvement of osm2pgsql, this is vital information.</li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1674#issuecomment-1131955432">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353VVP35NGQOPMQJF6LTVKZWWXANCNFSM5V6VPZVA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353STYLCDNVKZLFUGCVTVKZWWXA5CNFSM5V6VPZVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIN4EJ2A.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><openstreetmap/osm2pgsql/issues/1674/1131955432</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/openstreetmap/osm2pgsql/issues/1674#issuecomment-1131955432",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1674#issuecomment-1131955432",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>