Skip to content

Commit

Permalink
Merge pull request osm2pgsql-dev#2176 from joto/remove-tablespace-ind…
Browse files Browse the repository at this point in the history
…ex-option

Remove the deprecated --tablespace-index option
  • Loading branch information
lonvia authored Apr 12, 2024
2 parents 89f34a8 + 1f5452f commit c3c49ff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
7 changes: 0 additions & 7 deletions man/osm2pgsql.1
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,6 @@ depends on the output.
no default.)
.SH PGSQL OUTPUT OPTIONS
.TP
-i, --tablespace-index=TABLESPC
Store all indexes in the PostgreSQL tablespace \f[V]TABLESPC\f[R].
This option also affects the middle tables.
This option is deprecated.
Use the --tablespace-slim-index and/or --tablespace-main-index options
instead.
.TP
--tablespace-main-data=TABLESPC
Store the data tables in the PostgreSQL tablespace \f[V]TABLESPC\f[R].
.TP
Expand Down
5 changes: 0 additions & 5 deletions man/osm2pgsql.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,6 @@ mandatory for short options too.

# PGSQL OUTPUT OPTIONS

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

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

Expand Down
19 changes: 0 additions & 19 deletions src/command-line-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,13 +584,6 @@ options_t parse_command_line(int argc, char *argv[])
// Tablespace options
// ----------------------------------------------------------------------

std::string tablespace_index;
app.add_option("-i,--tablespace-index", tablespace_index)
->description("Tablespace for indexes (sets default for "
"--tablespace-(main|slim)-index).")
->option_text("TBLSPC")
->group("Tablespace options");

app.add_option("--tablespace-main-data", options.tblsmain_data)
->description("Tablespace for main tables.")
->option_text("TBLSPC")
Expand Down Expand Up @@ -661,18 +654,6 @@ options_t parse_command_line(int argc, char *argv[])
options.input_format.clear();
}

if (!tablespace_index.empty()) {
log_warn(
"The option -i, --tablespace-index is deprecated. Use "
"--tablespace-slim-index and/or --tablespace-main-index instead.");
if (options.tblsmain_index.empty()) {
options.tblsmain_index = tablespace_index;
}
if (options.tblsslim_index.empty()) {
options.tblsslim_index = tablespace_index;
}
}

if (options.dbschema.empty()) {
throw std::runtime_error{"Schema can not be empty."};
}
Expand Down

0 comments on commit c3c49ff

Please sign in to comment.