<p></p>
<blockquote>
<p dir="auto">Of course, this is not a general improvement given the constraints, but I still wonder if there might be value for osm2pgsql putting the COPY statement in the same transaction as the CREATE TABLE as suggested here for the loading of nodes, ways an relations in case of initial imports?</p>
</blockquote>
<p dir="auto">This is not a consideration because on import the data is loaded into <code class="notranslate">UNLOGGED</code> tables, which do not use the WAL.</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/discussions/1991#discussioncomment-6378029">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353RBZTMCGYR6ZS75AZDXO4OBLANCNFSM6AAAAAA2A5QMYU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353VB7WR44FI2T3DOYZ3XO4OBLA5CNFSM6AAAAAA2A5QMYWWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAMFJC2.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/repo-discussions/1991/comments/6378029</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/discussions/1991#discussioncomment-6378029",
"url": "https://github.com/openstreetmap/osm2pgsql/discussions/1991#discussioncomment-6378029",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>