From: Sarah Hoffmann Date: Wed, 14 Feb 2024 15:07:27 +0000 (+0100) Subject: do not send outdated parameters to osm2pgsql flex X-Git-Tag: v4.4.0~10^2~1 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/a4f2e6a893d125eef553a25c9687f536ce357b90 do not send outdated parameters to osm2pgsql flex --- diff --git a/nominatim/tools/exec_utils.py b/nominatim/tools/exec_utils.py index c742e3e0..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')