<blockquote>
<p>My opinion is that we can't be held hostage by a package like osmosis that is essentially dead.</p>
<p>Loading data into an API database is not something most people ever have any need to do so I don't see this as an urgent problem to solve.</p>
</blockquote>
<blockquote>
<p>The thing is that osmosis loading has never worked very well and tends to just lead to frustrated users which is why I try and discourage it.</p>
</blockquote>
<blockquote>
<p>It remains one of the only mainstream API DB write paths that I’m aware of, so it’s likely that we are stuck with it.</p>
</blockquote>
<p>I agree with all the above statements, which is frustrating since there's no obvious way forward. My magic wand (if I had one) would conjure up someone to spin an osmosis 0.47.1 release with just the patch in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="567036807" data-permission-text="Issue title is private" data-url="https://github.com/openstreetmap/osmosis/issues/54" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/osmosis/pull/54/hovercard" href="https://github.com/openstreetmap/osmosis/pull/54">openstreetmap/osmosis#54</a> applied and then we can move on.</p>
<p>I really don't want to add an unused column to our database just to satisfy a broken client that should never have been using this column in the first place. The fact that it is unmaintained suggests that the correct approach is going to be to either find a new maintainer or find replacement software. And osmosis has never really worked very well for this anyway, due to both conflicts with existing data, and leaving sequences broken, and all that kind of stuff.</p>
<p>Given the existing need to run "fixup" SQL commands for the sequences when running osmosis, I think we should just update the documentation to add in the additional SQL commands (along with clearer warnings about the downsides, like messing up dbs with existing geodata, user accounts or both) and move on.</p>
<blockquote>
<p>That, or providing a supported piece of code inside this repository to write to the API DB.</p>
</blockquote>
<p>The problem is that adding additional data to the db is simple only when the db is already empty. Any other situation becomes complex to the point of being a significant task. I suspect you need the user to decide what to do when e.g. node_id 10,003 already exists (overwrite it? or create a new node, and rewrite all references in the current import), or when user_id = 2 is already in the database - use this user for all the related data in the import, or create a new user for stuff coming from the import, and so on and so on. All these decisions have big implications for what the user is trying to do, when anyone wants to use it beyond just filling an empty db. So this suggests a non-trivial piece of software with many options, tests and complexity, that's not really suitable as a script in this repo.</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/2543?email_source=notifications&email_token=AAK2OLIOJKBPJNHRGNLX3G3RDUGCZA5CNFSM4KXJGQT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMHKGEY#issuecomment-588161811">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLP24ZESHZ44GBLFOC3RDUGCZANCNFSM4KXJGQTQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLK7DA5E6DU4CEY5F6DRDUGCZA5CNFSM4KXJGQT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMHKGEY.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/2543?email_source=notifications\u0026email_token=AAK2OLIOJKBPJNHRGNLX3G3RDUGCZA5CNFSM4KXJGQT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMHKGEY#issuecomment-588161811",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2543?email_source=notifications\u0026email_token=AAK2OLIOJKBPJNHRGNLX3G3RDUGCZA5CNFSM4KXJGQT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMHKGEY#issuecomment-588161811",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>