remove country from place_addressline

The country information can be determined sufficiently from
the country code. We only loose the specific OSM object
behind the address.

Also streamlines the location_area_country table.
This commit is contained in:
Sarah Hoffmann
2019-07-09 20:47:25 +02:00
parent 745e52b798
commit be47cd2549
4 changed files with 17 additions and 13 deletions

View File

@@ -35,9 +35,6 @@ CREATE TABLE search_name_blank (
);
CREATE TABLE location_area_country () INHERITS (location_area_large) {ts:address-data};
CREATE INDEX idx_location_area_country_geometry ON location_area_country USING GIST (geometry) {ts:address-index};
-- start
CREATE TABLE location_area_large_-partition- () INHERITS (location_area_large) {ts:address-data};
CREATE INDEX idx_location_area_large_-partition-_place_id ON location_area_large_-partition- USING BTREE (place_id) {ts:address-index};