-
Is there a way to make Nominatim use a table in a specific tablespace in postgresql? The documentation describes seemingly related variables NOMINATIM_TABLESPACE_* , yet setting those appears to have no effect on where it creates the database. Tracked down the point in the scripts where createdb is called and it looks like is not designed to receive corresponding options. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Have a look at https://nominatim.org/release-docs/latest/admin/Advanced-Installations/ You should be able to use Best to test with a very small country or region first. Please post specific reproducable steps if that didn’t work. We’d also need to know Nominatim version, database version. |
Beta Was this translation helpful? Give feedback.
-
Setting |
Beta Was this translation helpful? Give feedback.
-
The There is no option to have all of Nominatim in a special tablespace. If you need that, it is usually better to simply move Postgres' data_directory as a whole. If you nonetheless want all of Nominatim in a special dataspace, follow the instructions for importing without user-user rights. After having prepared the database, move it to the right dataspace with |
Beta Was this translation helpful? Give feedback.
The
NOMINATIM_TABLESPACE_*
settings cause selected tables to be moved into the given tablespaces. As the documentation mentions, the idea here is to be able to spread the database over different tablespaces. This comes from a time when SSD were hard to come by and you'd wanted to have the more frequently used data on more expensive storage. Nowadays, this option doesn't make much sense anymore. It's likely that it will go away at some point.There is no option to have all of Nominatim in a special tablespace. If you need that, it is usually better to simply move Postgres' data_directory as a whole. If you nonetheless want all of Nominatim in a special dataspace, follow the instructions for …