Skip to content

Commit c3c49ff

Browse files
authored
Merge pull request #2176 from joto/remove-tablespace-index-option
Remove the deprecated --tablespace-index option
2 parents 89f34a8 + 1f5452f commit c3c49ff

File tree

3 files changed

+0
-31
lines changed

3 files changed

+0
-31
lines changed

man/osm2pgsql.1

-7
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,6 @@ depends on the output.
229229
no default.)
230230
.SH PGSQL OUTPUT OPTIONS
231231
.TP
232-
-i, --tablespace-index=TABLESPC
233-
Store all indexes in the PostgreSQL tablespace \f[V]TABLESPC\f[R].
234-
This option also affects the middle tables.
235-
This option is deprecated.
236-
Use the --tablespace-slim-index and/or --tablespace-main-index options
237-
instead.
238-
.TP
239232
--tablespace-main-data=TABLESPC
240233
Store the data tables in the PostgreSQL tablespace \f[V]TABLESPC\f[R].
241234
.TP

man/osm2pgsql.md

-5
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,6 @@ mandatory for short options too.
198198

199199
# PGSQL OUTPUT OPTIONS
200200

201-
-i, \--tablespace-index=TABLESPC
202-
: Store all indexes in the PostgreSQL tablespace `TABLESPC`. This option
203-
also affects the middle tables. This option is deprecated. Use the
204-
\--tablespace-slim-index and/or \--tablespace-main-index options instead.
205-
206201
\--tablespace-main-data=TABLESPC
207202
: Store the data tables in the PostgreSQL tablespace `TABLESPC`.
208203

src/command-line-parser.cpp

-19
Original file line numberDiff line numberDiff line change
@@ -584,13 +584,6 @@ options_t parse_command_line(int argc, char *argv[])
584584
// Tablespace options
585585
// ----------------------------------------------------------------------
586586

587-
std::string tablespace_index;
588-
app.add_option("-i,--tablespace-index", tablespace_index)
589-
->description("Tablespace for indexes (sets default for "
590-
"--tablespace-(main|slim)-index).")
591-
->option_text("TBLSPC")
592-
->group("Tablespace options");
593-
594587
app.add_option("--tablespace-main-data", options.tblsmain_data)
595588
->description("Tablespace for main tables.")
596589
->option_text("TBLSPC")
@@ -661,18 +654,6 @@ options_t parse_command_line(int argc, char *argv[])
661654
options.input_format.clear();
662655
}
663656

664-
if (!tablespace_index.empty()) {
665-
log_warn(
666-
"The option -i, --tablespace-index is deprecated. Use "
667-
"--tablespace-slim-index and/or --tablespace-main-index instead.");
668-
if (options.tblsmain_index.empty()) {
669-
options.tblsmain_index = tablespace_index;
670-
}
671-
if (options.tblsslim_index.empty()) {
672-
options.tblsslim_index = tablespace_index;
673-
}
674-
}
675-
676657
if (options.dbschema.empty()) {
677658
throw std::runtime_error{"Schema can not be empty."};
678659
}

0 commit comments

Comments
 (0)