mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 14:02:12 +03:00
indexes with includes are not available for postgresql < 11
This commit is contained in:
parent
91d2fb6b1c
commit
9c51c133f7
@ -85,7 +85,6 @@ def _get_indexes(conn):
|
||||
'idx_placex_parent_place_id',
|
||||
'idx_placex_geometry_reverse_lookuppolygon',
|
||||
'idx_placex_geometry_placenode',
|
||||
'idx_placex_housenumber',
|
||||
'idx_osmline_parent_place_id',
|
||||
'idx_osmline_parent_osm_id',
|
||||
'idx_postcode_id',
|
||||
@ -100,6 +99,9 @@ def _get_indexes(conn):
|
||||
'idx_location_area_country_place_id',
|
||||
'idx_place_osm_unique'
|
||||
))
|
||||
if conn.server_version_tuple() >= (11, 0, 0):
|
||||
indexes.extend(('idx_placex_housenumber',
|
||||
'idx_osmline_parent_osm_id_with_hnr'))
|
||||
|
||||
return indexes
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user