<p></p>
<h2 dir="auto">What version of osm2pgsql are you using?</h2>
<p dir="auto">osm2pgsql version 1.6.0</p>
<h2 dir="auto">What operating system and PostgreSQL/PostGIS version are you using?</h2>
<p dir="auto">PostgreSQL 13.4<br>
postgis 3.1.4<br>
Amazon RDS</p>
<h2 dir="auto">What did you do exactly?</h2>
<p dir="auto">We have tried to use the schema when executing osm2pgsql command line,<br>
but this is not working; the tables are still created under public schema.</p>
<ul dir="auto">
<li>
<p dir="auto">Notice we using the same super user "dbuser" do create the database "osm" and schema "osm".</p>
</li>
<li>
<p dir="auto">dbuser is a super user and has all permissions</p>
</li>
<li>
<p dir="auto">CREATE SCHEMA osm;</p>
</li>
<li>
<p dir="auto">Since our version is 1.6.0 we using the parameters to specify</p>
</li>
<li>
<p dir="auto">the schema to be used.</p>
</li>
</ul>
<p dir="auto">osm2pgsql --extra-attributes <br>
--output=flex --style=/opt/geo/scripts/final.lua <br>
--keep-coastlines --cache 30000 <br>
--output-pgsql-schema=osm --middle-schema=osm<br>
--slim --drop --flat-nodes /data/file <br>
-H localhost <br>
-P 5432 -U dbuser -d osm /data/planet-latest.osm.pbf</p>
<p dir="auto">We also tried setting the search_path as following.<br>
ALTER ROLE dbuser SET search_path TO osm, public;</p>
<p dir="auto">None of the above makes the command create the tables and data under the osm schema.</p>
<h2 dir="auto">What did you expect to happen?</h2>
<p dir="auto">We expected to have the tables and data under the "osm" schema</p>
<h2 dir="auto">What did happen instead?</h2>
<p dir="auto">Tables and data were found under public schema.</p>
<h2 dir="auto">What did you do to try analyzing the problem?</h2>
<p dir="auto">We tried what is described above.</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/issues/1644">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353XIKN2FSLIKPSNRYDLU4OGMHANCNFSM5PBNI74Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353X56SWITTUOIJNUSRDU4OGMHA5CNFSM5PBNI742YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RC4UGDA.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/issues/1644</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/issues/1644",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1644",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>