@@ -103,20 +103,25 @@ def _get_indexes(conn: Connection) -> List[str]:
103
103
'idx_placex_rank_search' ,
104
104
'idx_placex_rank_address' ,
105
105
'idx_placex_parent_place_id' ,
106
+ 'idx_placex_geometry_reverse_lookupplacenode' ,
106
107
'idx_placex_geometry_reverse_lookuppolygon' ,
107
108
'idx_placex_geometry_placenode' ,
108
109
'idx_osmline_parent_place_id' ,
109
110
'idx_osmline_parent_osm_id' ,
110
111
'idx_postcode_id' ,
111
112
'idx_postcode_postcode'
112
113
]
114
+
115
+ # These won't exist if --reverse-only import was used
113
116
if table_exists (conn , 'search_name' ):
114
117
indexes .extend (('idx_search_name_nameaddress_vector' ,
115
118
'idx_search_name_name_vector' ,
116
119
'idx_search_name_centroid' ))
117
120
if server_version_tuple (conn ) >= (11 , 0 , 0 ):
118
121
indexes .extend (('idx_placex_housenumber' ,
119
122
'idx_osmline_parent_osm_id_with_hnr' ))
123
+
124
+ # These won't exist if --no-updates import was used
120
125
if table_exists (conn , 'place' ):
121
126
indexes .extend (('idx_location_area_country_place_id' ,
122
127
'idx_place_osm_unique' ,
0 commit comments