Closed joto closed 8 months ago
I'm fine with deprecating it.
I used it back when SSDs on hosted boxes were small, having indexes on SSD only and the rest still on "rotating rust" aka classic HDDs.
But that was many, many years ago already so I won't miss it at all if it were removed
I used it back when SSDs on hosted boxes were small, having indexes on SSD only and the rest still on "rotating rust" aka classic HDDs.
But that was many, many years ago already so I won't miss it at all if it were removed
@hholzgra. If I understand @joto well, the discussion here is only to remove the first -i,--tablespace-index
option, not the four other options, so it will still be possible to separate out the tablespaces used for indexes from the ones for tables. Of course, once pgsql output is finally put to rest in osmpgsql, only two options for "slim a.k.a. middle" remain, further cleaning up the different options.
I do use the "slim" tablespaces options, and do think there is still some limited value for being able to separate out the tablespace for indexes versus the tables they are associated with.
@mboeringa Exactly right. I am only trying to clean up the command line options bit by bit, I don't want to take away any functionality. Most users will never fiddle around with tablespaces, but there will always be cases where you need them and we will continue to support them.
I suspect that the option is used rarely enough that it doesn't make much of a difference to remove the -i
option. Nominatim does offer to configure tablespaces but only in the fine grained version.
On the other hand, I don't see that keeping it adds much confusion either. It may be a bit tricky in the implementation but the semantics are clear regarding the interaction with the fine-grained parameters.
I think we should deprecate the option
-i,--tablespace-index
. It is probably seldomly used and interacts in weird ways with the other "tablespace options"We have a strange mixture here of tablespaces for "tables vs. indexes" and "main (ie. pgsql output) vs. slim (ie. middle)". If we deprecate the
-i,--tablespace-index
we don't loose any functionality, but separate out the different concerns. We can remove the option then in 2.0.We can also think about renaming the options
--tablespace-slim-*
to--midde-tablespace-*
for consistency with the other middle options.@lonvia @pnorman What do you think?