Skip to content

Commit 158307a

Browse files
committed
add deprecation warnings for multi backend
1 parent 43f8937 commit 158307a

4 files changed

Lines changed: 16 additions & 6 deletions

File tree

docs/multi.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Multi Backend #
22

3+
**WARNING: the multi backend is deprecated and will be removed in future versions
4+
of osm2pgsql.**
5+
36
The multi backend is designed for custom table structures as an alternative
47
to the standard [pgsql](pgsql.md) backend tables. It is intended to allow
58
the configuration of a custom set of tables with hopefully fewer rows and fewer

docs/osm2pgsql.1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ Create a tile expiry list.
152152
Output file name for expired tiles list.
153153
.TP
154154
\fB\-O\fR|\-\-output
155-
Specifies the output back\-end or database schema to use. Currently
156-
osm2pgsql supports \fBpgsql\fR, \fBgazetteer\fR and \fBnull\fR. \fBpgsql\fR is
155+
Specifies the output back\-end or database schema to use. Currently osm2pgsql
156+
supports \fBpgsql\fR, \fBflex\fR, \fBgazetteer\fR and \fBnull\fR. \fBpgsql\fR is
157157
the default output back\-end / schema and is optimized for rendering with Mapnik.
158158
\fBgazetteer\fR is a db schema optimized for geocoding and is used by Nominatim.
159-
The \fBmulti\fR backend allows more customization of tables. The experimental
160-
\fBflex\fR backend allows more flexible configuration.
159+
The experimental \fBflex\fR backend allows more flexible configuration.
161160
\fBnull\fR does not write any output and is only useful for testing or with
162-
\-\-slim for creating slim tables.
161+
\-\-slim for creating slim tables. There is also a \fBmulti\fR backend. This is
162+
now deprecated and will be removed in future versions of osm2pgsql.
163163
.TP
164164
\fB\-x\fR|\-\-extra\-attributes
165165
Include attributes for each object in the database.

docs/usage.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ use them.
1515

1616
* `--output` specifies if the output backend is the default
1717
[`pgsql`](pgsql.md), the [`gazetteer`](gazetteer.md) output used by Nominatim,
18-
the new [`multi`](multi.md) backend which allows more customization of tables,
18+
the new [`flex`](flex.md) backend which allows more customization of tables,
1919
or `null`, which emits no output to the backend.
20+
There also is a [`multi`](multi.md) backend. This is now deprecated and
21+
will be removed in future versions of osm2pgsql.
2022

2123
`null` will create slim tables if `--slim` is also used.
2224

src/options.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,11 @@ options_t::options_t(int argc, char *argv[]) : options_t()
435435
break;
436436
case 'O':
437437
output_backend = optarg;
438+
if (output_backend == "multi") {
439+
fprintf(stderr,
440+
"WARNING: 'multi' output is deprecated and will be removed.\n"
441+
" Please switch to the 'flex' output.\n");
442+
}
438443
break;
439444
case 'x':
440445
extra_attributes = true;

0 commit comments

Comments
 (0)