X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f69fea4210c625ef8d2d955453303acd97076975..8fcc2bb7f58db967c17a3575f1869c134c60486e:/nominatim/tools/exec_utils.py diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index 6fc3f6c9..c742e3e0 100644 --- a/nominatim/tools/exec_utils.py +++ b/nominatim/tools/exec_utils.py @@ -57,6 +57,11 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None: if options['tablespaces'][key]: cmd.extend((param, options['tablespaces'][key])) + if options['tablespaces']['main_data']: + env['NOMINATIM_TABLESPACE_PLACE_DATA'] = options['tablespaces']['main_data'] + if options['tablespaces']['main_index']: + env['NOMINATIM_TABLESPACE_PLACE_INDEX'] = options['tablespaces']['main_index'] + if options.get('disable_jit', False): env['PGOPTIONS'] = '-c jit=off -c max_parallel_workers_per_gather=0'