]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/index.c
merge in the postcode and is_in terms into the address vector for search
[nominatim.git] / nominatim / index.c
index f337a9ece5d8560cedc9399de8543f0a8e3e9a07..13f292737082f5a4185c45086b6ff90d265c91eb 100644 (file)
@@ -308,6 +308,13 @@ void nominatim_index(int rank_min, int rank_max, int num_threads, const char *co
     {
         nominatim_exportXMLEnd(writer);
     }
+
+    // Close all connections
+    for (i = 0; i < num_threads; i++)
+    {
+        PQfinish(thread_data[i].conn);
+    }
+    PQfinish(conn);
 }
 
 void *nominatim_indexThread(void * thread_data_in)