]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/check_database.py
adapt database check to new index layout
[nominatim.git] / nominatim / tools / check_database.py
index 7b8da200b5a8598416bb9ef78f76dc3eda8347a5..5b39085d76f72bc52c31677fa191f8f6b0ace673 100644 (file)
@@ -60,7 +60,7 @@ def check_database(config):
     """ Run a number of checks on the database and return the status.
     """
     try:
-        conn = connect(config.get_libpq_dsn())
+        conn = connect(config.get_libpq_dsn()).connection
     except UsageError as err:
         conn = _BadConnection(str(err))
 
@@ -84,7 +84,8 @@ def _get_indexes(conn):
                'idx_placex_rank_address',
                'idx_placex_parent_place_id',
                'idx_placex_geometry_reverse_lookuppolygon',
-               'idx_placex_geometry_reverse_placenode',
+               'idx_placex_geometry_placenode',
+               'idx_placex_housenumber',
                'idx_osmline_parent_place_id',
                'idx_osmline_parent_osm_id',
                'idx_postcode_id',