Skip to content

Commit 4bf4d5b

Browse files
authored
Merge pull request #2136 from joto/deprecate-tablespace-index
Mark command line option -i, --tablespace-index as deprecated
2 parents 5b06357 + 6592188 commit 4bf4d5b

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

man/osm2pgsql.1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ Example: \f[B]--bbox\f[R] \f[B]-0.5,51.25,0.5,51.75\f[R]
115115
-i, --tablespace-index=TABLESPC
116116
Store all indexes in the PostgreSQL tablespace \f[V]TABLESPC\f[R].
117117
This option also affects the tables created by the pgsql output.
118+
This option is deprecated.
119+
Use the --tablespace-slim-index and/or --tablespace-main-index options
120+
instead.
118121
.TP
119122
--tablespace-slim-data=TABLESPC
120123
Store the slim mode tables in the given tablespace.
@@ -245,6 +248,9 @@ no default.)
245248
-i, --tablespace-index=TABLESPC
246249
Store all indexes in the PostgreSQL tablespace \f[V]TABLESPC\f[R].
247250
This option also affects the middle tables.
251+
This option is deprecated.
252+
Use the --tablespace-slim-index and/or --tablespace-main-index options
253+
instead.
248254
.TP
249255
--tablespace-main-data=TABLESPC
250256
Store the data tables in the PostgreSQL tablespace \f[V]TABLESPC\f[R].

man/osm2pgsql.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ mandatory for short options too.
111111

112112
-i, \--tablespace-index=TABLESPC
113113
: Store all indexes in the PostgreSQL tablespace `TABLESPC`. This option
114-
also affects the tables created by the pgsql output.
114+
also affects the tables created by the pgsql output. This option is
115+
deprecated. Use the \--tablespace-slim-index and/or \--tablespace-main-index
116+
options instead.
115117

116118
\--tablespace-slim-data=TABLESPC
117119
: Store the slim mode tables in the given tablespace.
@@ -210,7 +212,8 @@ mandatory for short options too.
210212

211213
-i, \--tablespace-index=TABLESPC
212214
: Store all indexes in the PostgreSQL tablespace `TABLESPC`. This option
213-
also affects the middle tables.
215+
also affects the middle tables. This option is deprecated. Use the
216+
\--tablespace-slim-index and/or \--tablespace-main-index options instead.
214217

215218
\--tablespace-main-data=TABLESPC
216219
: Store the data tables in the PostgreSQL tablespace `TABLESPC`.

src/command-line-parser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,9 @@ options_t parse_command_line(int argc, char *argv[])
733733
}
734734

735735
if (!tablespace_index.empty()) {
736+
log_warn(
737+
"The option -i, --tablespace-index is deprecated. Use "
738+
"--tablespace-slim-index and/or --tablespace-main-index instead.");
736739
if (options.tblsmain_index.empty()) {
737740
options.tblsmain_index = tablespace_index;
738741
}

0 commit comments

Comments
 (0)