1 -- SPDX-License-Identifier: GPL-2.0-only
3 -- This file is part of Nominatim. (https://nominatim.org)
5 -- Copyright (C) 2026 by the Nominatim developer community.
6 -- For a full list of authors see the git log.
8 DROP TABLE IF EXISTS place_addressline;
10 CREATE TABLE place_addressline (
11 place_id BIGINT NOT NULL,
12 address_place_id BIGINT NOT NULL,
13 distance FLOAT NOT NULL,
14 cached_rank_address SMALLINT NOT NULL,
15 fromarea boolean NOT NULL,
16 isaddress boolean NOT NULL
17 ) {{db.tablespace.search_data}};
19 CREATE INDEX idx_place_addressline_place_id ON place_addressline
20 USING BTREE (place_id) {{db.tablespace.search_index}};