<p></p>
<p><b>@joto</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/1281#discussion_r499777279">src/options.cpp</a>:</p>
<pre style='color:#555'>>  std::string database_options_t::conninfo() const
 {
+    if (compare_prefix(db, "postgresql://") ||
+        compare_prefix(db, "postgres://")) {
+        return db;
+    }
+
     std::string out{"fallback_application_name='osm2pgsql'"};
</pre>
<p>No. In that case we can't set the application name if I understand the postgresql docs correctly. These are two totally different ways of specifying the connection string and they can't be mixed.</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/pull/1281#discussion_r499777279">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353VBVAWTAID3I7YW7A3SJIC6JANCNFSM4SEVEPAA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353RCSJ5U4FUZVPUIRVTSJIC6JA5CNFSM4SEVEPAKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODXYGU5A.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/pull/1281#discussion_r499777279",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1281#discussion_r499777279",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>