[Tile-serving] [openstreetmap/osm2pgsql] Add support for osm2pgsql_properties table to osm2pgsql-replication (PR #2029)

Sarah Hoffmann notifications at github.com
Thu Aug 10 20:14:38 UTC 2023


@lonvia commented on this pull request.



> +    def __init__(self, errno, msg):
+        self.errno = errno
+        self.msg = msg
+
+
+class DBConnection:
+
+    def __init__(self, args):
+        self.schema = args.middle_schema
+
+        # If dbname looks like a conninfo string use it as such
+        if args.database and any(part in args.database for part in ['=', '://']):
+            self.conn = psycopg.connect(args.database,
+                                        fallback_application_name="osm2pgsql-replication")
+
+        self.conn = psycopg.connect(dbname=args.database, user=args.username,

Yes, fixed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/2029#discussion_r1290633532
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/2029/review/1572660055 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230810/758d40aa/attachment-0001.htm>


More information about the Tile-serving mailing list