]> git.openstreetmap.org Git - nominatim.git/commitdiff
reenable tablespace arguments for flex tables
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 4 Sep 2023 08:45:52 +0000 (10:45 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 4 Sep 2023 08:45:52 +0000 (10:45 +0200)
nominatim/tools/exec_utils.py
settings/flex-base.lua

index 6fc3f6c91d88685a3a3cbe37b42733f8a2dd9805..c742e3e0061d1d8778d55c8ab975b52873f3fc91 100644 (file)
@@ -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'
 
index fbfb4d54620decaf791550ebc76e0302c2792896..dc2c12eef1f2d4bb4f2c67b075376ebcd2f4323c 100644 (file)
@@ -30,6 +30,8 @@ local place_table = osm2pgsql.define_table{
         { column = 'extratags', type = 'hstore' },
         { column = 'geometry', type = 'geometry', projection = 'WGS84', not_null = true },
     },
+    data_tablespace = os.getenv("NOMINATIM_TABLESPACE_PLACE_DATA"),
+    index_tablespace = os.getenv("NOMINATIM_TABLESPACE_PLACE_INDEX"),
     indexes = {}
 }