[Tile-serving] [openstreetmap/osm2pgsql] Parse conninfo string in osm2pgsql-replication (PR #1645)

Sarah Hoffmann notifications at github.com
Sun Feb 27 10:36:08 UTC 2022


Looks like parsing the DSN needs to be done in a completely different way in psycopg2 and psycopg3. So that will only work with lots of fiddeling, I'm afraid.

What works for both is the `dsn` parameter for connect. So I would rather check if the `dbname` parameter looks like a connection string (presence of `=` or `://`) and then feed it in as a DSN.

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

Message ID: <openstreetmap/osm2pgsql/pull/1645/c1053477472 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220227/43293701/attachment.htm>


More information about the Tile-serving mailing list