]> git.openstreetmap.org Git - nominatim.git/commit
add bbox whereclause to make postgis 3.0 happy
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 16 Feb 2020 13:10:22 +0000 (14:10 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 16 Feb 2020 13:10:22 +0000 (14:10 +0100)
commit2a6e8ad68e80dcda3f747ca47fa149a23d62676c
tree083a049cc6c90eeaf007ab1852a5018110aad34d
parent55c8a0ac08ee4b7e6b385deccba5e21186e7dfd1
add bbox whereclause to make postgis 3.0 happy

Normally ST_Covers() should include a bbox index use,
so adding a bbox where clause is not really necessary.
However, the query planner messes up and uses a parallel
index search with a second index instead of exclusively
running on the geometry index, when the bbox part is
missing.
sql/functions/placex_triggers.sql