<p>One issue I see is that osm2pgsql uses a completely different table structure than what you have in your current osmosis db (it seems you're currently using a pgsnapshot schema?).</p>
<p>So my first question would be what your use case is, and why you want to switch to osm2pgsql in the first place.</p>
<p>Otherwise you could of course to define some SQL VIEWs instead, which fetch data from the original tables without reloading. But as I said, that probably won't work out of the box due to the large differences between those two schemas.</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/958?email_source=notifications&email_token=AA6353T3VYQ26W2ZZSUNTRLQMW3V7A5CNFSM4I45L4N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHTF4Y#issuecomment-537866995">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353RNVGK53LOH5Q2FSXDQMW3V7ANCNFSM4I45L4NQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AA6353UL3F55ADUKLRE6NK3QMW3V7A5CNFSM4I45L4N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHTF4Y.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/osm2pgsql/issues/958?email_source=notifications\u0026email_token=AA6353T3VYQ26W2ZZSUNTRLQMW3V7A5CNFSM4I45L4N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHTF4Y#issuecomment-537866995",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/958?email_source=notifications\u0026email_token=AA6353T3VYQ26W2ZZSUNTRLQMW3V7A5CNFSM4I45L4N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHTF4Y#issuecomment-537866995",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>