reenable tablespace arguments for flex tables

This commit is contained in:
Sarah Hoffmann 2023-09-04 10:45:52 +02:00
parent 0e74e82a38
commit cb8149f8ea
2 changed files with 7 additions and 0 deletions

View 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'

View 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 = {}
}