mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
reenable tablespace arguments for flex tables
This commit is contained in:
@@ -57,6 +57,11 @@ def run_osm2pgsql(options: Mapping[str, Any]) -> None:
|
|||||||
if options['tablespaces'][key]:
|
if options['tablespaces'][key]:
|
||||||
cmd.extend((param, 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):
|
if options.get('disable_jit', False):
|
||||||
env['PGOPTIONS'] = '-c jit=off -c max_parallel_workers_per_gather=0'
|
env['PGOPTIONS'] = '-c jit=off -c max_parallel_workers_per_gather=0'
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ local place_table = osm2pgsql.define_table{
|
|||||||
{ column = 'extratags', type = 'hstore' },
|
{ column = 'extratags', type = 'hstore' },
|
||||||
{ column = 'geometry', type = 'geometry', projection = 'WGS84', not_null = true },
|
{ 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 = {}
|
indexes = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user