From d7c8f3d7e88bf52f8a09ee7768784210f88036a4 Mon Sep 17 00:00:00 2001 From: Javier Goizueta Date: Tue, 15 Dec 2015 19:13:39 +0100 Subject: [PATCH] Fix: overlay generation was not using the proper scale --- scripts-available/CDB_Overviews.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts-available/CDB_Overviews.sql b/scripts-available/CDB_Overviews.sql index 0c60c79..acbc098 100644 --- a/scripts-available/CDB_Overviews.sql +++ b/scripts-available/CDB_Overviews.sql @@ -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;