Skip to content

Commit 89f8bb6

Browse files
committed
regenerate the osm2pgsql-replication manpage now with the command
1 parent a03e1fa commit 89f8bb6

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

docs/osm2pgsql-replication.1

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,30 @@ Any additional arguments to osm2pgsql need to be given after '\-\-'. Database
128128
and the prefix parameter are handed through to osm2pgsql. They do not need
129129
.br
130130
to 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
\fBparam\fR
@@ -149,6 +173,10 @@ Path to osm2pgsql command (default: osm2pgsql)
149173
\fB\-\-once\fR
150174
Run 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
154182
Print only error messages
@@ -177,7 +205,10 @@ Database server port
177205
\fB\-\-prefix\fR PREFIX
178206
Prefix for table names (default 'planet_osm')
179207

208+
.SH AUTHORS
209+
.B osm2pgsql\-replication
210+
was written by <<UNSET \-\-author OPTION>> <<<UNSET \-\-author_email OPTION>>>.
180211
.SH DISTRIBUTION
181212
The latest version of osm2pgsql\-replication may be downloaded from
182-
.UR <<UNSET \-\-url OPTION>>
213+
.UR osm2pgsql.org
183214
.UE

0 commit comments

Comments
 (0)