X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1c6f4263635dce309434dc10e622552b1e70308b..4fa349315b59bae789c77cbf2ffa0021d1231d64:/nominatim/tools/exec_utils.py diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index 6fc3f6c9..db89c389 100644 --- a/nominatim/tools/exec_utils.py +++ b/nominatim/tools/exec_utils.py @@ -31,7 +31,7 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None: """ env = get_pg_env(options['dsn']) cmd = [str(options['osm2pgsql']), - '--hstore', '--latlon', '--slim', + '--slim', '--log-progress', 'true', '--number-processes', '1' if options['append'] else str(options['threads']), '--cache', str(options['osm2pgsql_cache']), @@ -43,7 +43,7 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None: os.environ.get('LUAPATH', ';'))) cmd.extend(('--output', 'flex')) else: - cmd.extend(('--output', 'gazetteer')) + cmd.extend(('--output', 'gazetteer', '--hstore', '--latlon')) cmd.append('--append' if options['append'] else '--create') @@ -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'