@@ -128,6 +128,30 @@ Any additional arguments to osm2pgsql need to be given after '\-\-'. Database
128128and the prefix parameter are handed through to osm2pgsql. They do not need
129129.br
130130to be repeated. '\-\- append' and '\-\- slim' will always be added as well.
131+ .br
132+
133+ .br
134+ Use the '\-\- post\- processing' parameter to execute a script after osm2pgsql has
135+ .br
136+ run successfully. If the updates consists of multiple runs because the
137+ .br
138+ maximum size of downloaded data was reached, then the script is executed
139+ .br
140+ each time that osm2pgsql has run. When the post\- processing fails, then
141+ .br
142+ the entire update run is considered a failure and the replication information
143+ .br
144+ is not updated. That means that when 'update' is run the next time it will
145+ .br
146+ recommence with downloading the diffs again and reapplying them to the
147+ .br
148+ database. This is usually safe. The script receives two parameters:
149+ .br
150+ the sequence ID and timestamp of the last successful run. The timestamp
151+ .br
152+ may be missing in the rare case that the replication service stops responding
153+ .br
154+ after the updates have been downloaded.
131155
132156.TP
133157\fB param \fR
@@ -149,6 +173,10 @@ Path to osm2pgsql command (default: osm2pgsql)
149173\fB \-\- once \fR
150174Run updates only once, even when more data is available.
151175
176+ .TP
177+ \fB \-\- post \- processing \fR SCRIPT
178+ Post\- processing script to run after each execution of osm2pgsql.
179+
152180.TP
153181\fB \- q \fR , \fB \-\- quiet \fR
154182Print only error messages
@@ -179,5 +207,5 @@ Prefix for table names (default 'planet_osm')
179207
180208.SH DISTRIBUTION
181209The latest version of osm2pgsql\- replication may be downloaded from
182- .UR <<UNSET \-\- url OPTION>>
210+ .UR osm2pgsql.org
183211.UE
0 commit comments