[Tile-serving] [openstreetmap/osm2pgsql] osm2pgsql-replication will now use postgresql's application_name (PR #1980)

Amanda notifications at github.com
Mon Jun 26 12:46:08 UTC 2023


@amandasaurus commented on this pull request.



> @@ -80,10 +80,10 @@ def connect(args):
     """
     # If dbname looks like a conninfo string use it as such
     if args.database and any(part in args.database for part in ['=', '://']):
-        return psycopg.connect(args.database)
+        return psycopg.connect(args.database, application_name="osm2pgsql-replication")

Done. 🙂
I didn't know about that funtionality.
Rebased & force pushed.

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

Message ID: <openstreetmap/osm2pgsql/pull/1980/review/1498437369 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230626/838431dc/attachment.htm>


More information about the Tile-serving mailing list