Skip to content

Commit

Permalink
check-database: check for another required db index
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmail committed Aug 7, 2024
1 parent 738e99c commit 7cf21f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/nominatim_db/tools/check_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,25 @@ def _get_indexes(conn: Connection) -> List[str]:
'idx_placex_rank_search',
'idx_placex_rank_address',
'idx_placex_parent_place_id',
'idx_placex_geometry_reverse_lookupplacenode',
'idx_placex_geometry_reverse_lookuppolygon',
'idx_placex_geometry_placenode',
'idx_osmline_parent_place_id',
'idx_osmline_parent_osm_id',
'idx_postcode_id',
'idx_postcode_postcode'
]

# These won't exist if --reverse-only import was used
if table_exists(conn, 'search_name'):
indexes.extend(('idx_search_name_nameaddress_vector',
'idx_search_name_name_vector',
'idx_search_name_centroid'))
if server_version_tuple(conn) >= (11, 0, 0):
indexes.extend(('idx_placex_housenumber',
'idx_osmline_parent_osm_id_with_hnr'))

# These won't exist if --no-updates import was used
if table_exists(conn, 'place'):
indexes.extend(('idx_location_area_country_place_id',
'idx_place_osm_unique',
Expand Down

0 comments on commit 7cf21f8

Please sign in to comment.