X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7164fd310dcb9d657e17661d35cccc0f19931248..df3202017e681dc6973c66d8fc779604c6d29e3f:/sql/tables.sql?ds=sidebyside diff --git a/sql/tables.sql b/sql/tables.sql index 48740f23..efbe323e 100644 --- a/sql/tables.sql +++ b/sql/tables.sql @@ -138,7 +138,6 @@ SELECT AddGeometryColumn('search_name_blank', 'centroid', 4326, 'GEOMETRY', 2); drop table IF EXISTS search_name; CREATE TABLE search_name () INHERITS (search_name_blank); CREATE INDEX idx_search_name_place_id ON search_name USING BTREE (place_id); -CREATE INDEX search_name_name_vector_idx ON search_name USING GIN (name_vector) WITH (fastupdate = off); drop table IF EXISTS place_addressline; CREATE TABLE place_addressline ( @@ -200,7 +199,8 @@ CREATE TABLE placex ( indexed_status INTEGER, indexed_date TIMESTAMP, wikipedia TEXT, -- calculated wikipedia article name (language:title) - geometry_sector INTEGER + geometry_sector INTEGER, + calculated_country_code varchar(2) ); SELECT AddGeometryColumn('placex', 'centroid', 4326, 'GEOMETRY', 2); CREATE UNIQUE INDEX idx_place_id ON placex USING BTREE (place_id); @@ -278,6 +278,7 @@ CREATE TABLE import_polygon_error ( SELECT AddGeometryColumn('import_polygon_error', 'prevgeometry', 4326, 'GEOMETRY', 2); SELECT AddGeometryColumn('import_polygon_error', 'newgeometry', 4326, 'GEOMETRY', 2); CREATE INDEX idx_import_polygon_error_osmid ON import_polygon_error USING BTREE (osm_type, osm_id); +GRANT SELECT ON import_polygon_error TO "www-data"; drop table import_polygon_delete; CREATE TABLE import_polygon_delete (