Fix: overlay generation was not using the proper scale

This commit is contained in:
Javier Goizueta 2015-12-15 19:13:39 +01:00
parent 4c85d7f3ad
commit d7c8f3d7e8

View File

@ -91,6 +91,7 @@ BEGIN
base_rel := reloid;
FOREACH overview_z IN ARRAY overviews_z LOOP
EXECUTE 'SELECT ' || quote_ident(reduce_strategy::text) || Format('(''%s'', %s, %s);', base_rel, base_z, overview_z) INTO base_rel;
base_z := overview_z;
SELECT array_append(overview_tables, base_rel) INTO overview_tables;
END LOOP;