Skip to content

Commit 32e560f

Browse files
committed
avoid get_dsn_parameters which no longer exists in psycopg3
Fixes #2040.
1 parent 7e60f36 commit 32e560f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/osm2pgsql-replication

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class DBConnection:
122122
host=args.host, port=args.port,
123123
fallback_application_name="osm2pgsql-replication")
124124

125-
self.name = self.conn.get_dsn_parameters()['dbname']
125+
self.name = self.conn.info.dbname
126126

127127
def __enter__(self):
128128
return self

0 commit comments

Comments
 (0)