[Tile-serving] [openstreetmap/osm2pgsql] Fix running osm2pgsql-replication with psycopg3 (PR #2044)

Sarah Hoffmann notifications at github.com
Thu Aug 17 06:55:39 UTC 2023


@lonvia commented on this pull request.



> @@ -13,8 +13,13 @@
 from importlib.machinery import SourceFileLoader
 
 from behave import *
-import psycopg2
-from psycopg2 import sql
+try:
+    import psycopg2 as psycopg
+    from psycopg2 import sql
+except ImportError:
+    import psycopg
+    from psycopg import sql
+

Order is the same as in osm2pgsql-replication. This is on purpose.

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

Message ID: <openstreetmap/osm2pgsql/pull/2044/review/1581905152 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230816/8193df62/attachment-0001.htm>


More information about the Tile-serving mailing list