<blockquote>
<p>I can't create primary keys on the highways due to osm_id duplicates.</p>
</blockquote>

<p>The rendering tables do not have a unique or primary key by design. -G will not change that, nor is it supposed to.</p>

<hr>

<blockquote>
<p>Are there any plans to do so in the future?</p>
</blockquote>

<p>They couldn't be in the C transforms. It would mean extending the Lua interface to have another return for if an object is supposed to be transformed into a Multi geometry type or not, as well as probably another return for what distance to split linestrings on.</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/609#issuecomment-234127070">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AD2-7o_PPMFHOjro0tyUi-hYsV_BdQxvks5qXsKugaJpZM4JOeb-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7oXSv-U7H0nsP9pRO8JSxnpPKZXNks5qXsKugaJpZM4JOeb-.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/issues/609#issuecomment-234127070"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>