<p></p>
<p>Yes but osmosis made incomplete changes to your database - it added new data but didn't modify the sequences to reflect that. That is a bug in osmosis.</p>
<p>If you change the database other than using our code then you get to keep the pieces, or the people that wrote the broken tools you used to do so do.</p>
<p>If you want to fix it yourself then you will need to use the <a href="https://www.postgresql.org/docs/12/sql-altersequence.html" rel="nofollow">ALTER SEQUENCE</a> command:</p>
<pre><code>ALTER SEQUENCE changesets_id_seq RESTART WITH n;
ALTER SEQUENCE current_nodes_id_seq RESTART WITH n;
ALTER SEQUENCE current_ways_id_seq RESTART WITH n;
ALTER SEQUENCE current_relations_id_seq RESTART WITH n;
</code></pre>
<p>Choosing values for <code>n</code> that are higher than any existing objects.</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/openstreetmap-website/issues/2819#issuecomment-688066349">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJBD43QFSUX25VR5NTSER4NDANCNFSM4Q5PBTFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLOSJSCRZPJJGNRVMW3SER4NDA5CNFSM4Q5PBTFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFEBQ6LI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2819#issuecomment-688066349",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2819#issuecomment-688066349",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>