<p></p>
<p dir="auto">I have been testing with the latest master, which includes the changes for the new 'middle', by setting both:</p>
<p dir="auto"><code class="notranslate">--middle-database-format=new</code></p>
<p dir="auto">and</p>
<p dir="auto"><code class="notranslate">--middle-with-nodes</code></p>
<p dir="auto">Now, the osm2pgsql manual is kind of brief and mildly ambiguous regarding the <strong>--middle-with-nodes</strong> option:</p>
<p dir="auto"><a href="https://osm2pgsql.org/doc/manual.html#middle-command-line-options" rel="nofollow">https://osm2pgsql.org/doc/manual.html#middle-command-line-options</a></p>
<blockquote>
<p dir="auto">Version >= 1.9.0 Used together with the new middle database format when a flat nodes file is used to force storing nodes with tags in the database, too.</p>
</blockquote>
<p dir="auto">Am I right that <strong>--middle-with-nodes</strong> will add any node that is part of a way or relation <em>if is tagged</em> to the 'planet_osm_point' table, where previous versions of osm2pgsql would simply ignore a tagged node if it was part of a way or relation? I vaguely remember reading about this change, but could not find the reference to this new option again.</p>
<p dir="auto">If this is indeed the case, shouldn't this option be default <em>if a user specifies the <strong>new</strong> 'middle' format</em>? The main reason for not storing these nodes was a technical one if I understood it. Now that the technical challenge seems to have been overcome, it seems only logical to have this option on by default, I see little reason not to want to have this option on by default, it just makes the resulting data more complete.</p>
<p dir="auto">This might even allow dropping the <strong>--middle-with-nodes</strong> command line option altogether from osm2pgsql, saving one extra command line option.</p>
<p dir="auto">The only drawback might be that, as I witnessed, one may need extra storage, as I noticed osm2pgsql seems to create the <strong>--flat-nodes</strong> file and <strong>--middle-database-format=new</strong> 'planet_osm_nodes' table in parallel, while previously specifying <strong>--flat-nodes</strong> would prevent the creation of the 'planet_osm_nodes' table.</p>
<p dir="auto">In terms of performance, the impact of specifying the new 'middle' options, including <strong>--middle-with-nodes</strong> versus 'legacy' seems absolutely minimal. On Planet, it maybe just adds 15 minutes extra import time.</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/2012">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353Q4NA27344SFCSV3ADXR2KR7ANCNFSM6AAAAAA2VZCBJI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353QVBLY7NLUA5VP3A6TXR2KR7A5CNFSM6AAAAAA2VZCBJKWGG33NNVSW45C7OR4XAZNKIRUXGY3VONZWS33OVJRW63LNMVXHIX3JMTHAAUXRNE.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/2012</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/2012",
"url": "https://github.com/openstreetmap/osm2pgsql/discussions/2012",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>