[Tile-serving] [openstreetmap/osm2pgsql] Add a post-processing option for the update script (#1423)

Jochen Topf notifications at github.com
Tue Feb 23 12:42:52 UTC 2021


@joto approved this pull request.



> @@ -184,6 +184,18 @@ def update(conn, args):
     Any additional arguments to osm2pgsql need to be given after '--'. Database
     and the prefix parameter are handed through to osm2pgsql. They do not need
     to be repeated. '--append' and '--slim' will always be added as well.
+
+    Use the '--post-processing' parameter to execute a script after osm2pgsql has
+    run sucessfully. If the updates consists of multiple runs because the
+    maximum size of downloaded data was reached, then the script is executed
+    each time that osm2pgsql has run. When the post-processing fails, then
+    the entire update run is considered a failure and the replication information
+    is not updated. That means that when 'update' is run the next time it will
+    recommence with downloading the diffs again and reapplying them to the
+    database. This is usually save. The script receives two parameters:

safe

> @@ -184,6 +184,18 @@ def update(conn, args):
     Any additional arguments to osm2pgsql need to be given after '--'. Database
     and the prefix parameter are handed through to osm2pgsql. They do not need
     to be repeated. '--append' and '--slim' will always be added as well.
+
+    Use the '--post-processing' parameter to execute a script after osm2pgsql has
+    run sucessfully. If the updates consists of multiple runs because the

successfully

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1423#pullrequestreview-596289738
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210223/e1e6d5cd/attachment.htm>


More information about the Tile-serving mailing list