<p></p>
<p dir="auto">Can you please post the exact command lines and any config files used? It would probably also help if you turned up logging in your PostgreSQL, so that you can see whether indexes were created or not. You can also run osm2pgsql with <code class="notranslate">--log-sql</code> which will show you exactly which SQL commands were issued (careful, can be a lot of output).</p>
<p dir="auto">Note that indexes on the ids columns will only be created when using <code class="notranslate">--slim</code> mode or when using two-stage processing.</p>

<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-1127344838">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353WNOZJWIOIXQIEVU7TVKH5CDANCNFSM5V6VPZVA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353RAMIM3R3HC2LCJCILVKH5CDA5CNFSM5V6VPZVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIMY6VRQ.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/1127344838</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-1127344838",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1674#issuecomment-1127344838",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>