CTEs always materialise so inline the union zoom level views ⚠️

This commit is contained in:
lukasmartinelli
2016-10-08 21:27:28 +02:00
parent d53ca84a36
commit 63985fca1e
9 changed files with 52 additions and 60 deletions

View File

@@ -124,6 +124,6 @@ RETURNS TABLE(geom geometry, class text) AS $$
SELECT * FROM road_z13 WHERE zoom_level = 13
UNION ALL
SELECT * FROM road_z14 WHERE zoom_level >= 14
) AS t
) AS zoom_levels
WHERE geom && bbox;
$$ LANGUAGE SQL IMMUTABLE;