]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/exec_utils.py
Merge pull request #2174 from lonvia/disable-jit-for-osm2pgsql-again
[nominatim.git] / nominatim / tools / exec_utils.py
index 541a2b08f05b563b47272795ef82b6239e21413a..f373f347dd23936fd155edda465373fcb09e42d4 100644 (file)
@@ -127,6 +127,9 @@ def run_osm2pgsql(options):
         if param in dsn:
             cmd.extend(('--' + param, dsn[param]))
 
+    if options.get('disable_jit', False):
+        env['PGOPTIONS'] = '-c jit=off -c max_parallel_workers_per_gather=0'
+
     cmd.append(str(options['import_file']))
 
     subprocess.run(cmd, cwd=options.get('cwd', '.'), env=env, check=True)