[Tile-serving] [openstreetmap/osm2pgsql] Allow conninfo string in -d/--database option (#1281)

Jochen Topf notifications at github.com
Mon Oct 5 18:03:16 UTC 2020


@joto commented on this pull request.



>  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'"};

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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1281#discussion_r499777279
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20201005/02d0b238/attachment.htm>


More information about the Tile-serving mailing list