Fix bug in CDB_DropOverviews

Fixes #223
This commit is contained in:
Javier Goizueta 2016-04-06 18:57:52 +02:00
parent e68d5eca45
commit 5c3c0f5fc9

View File

@ -120,7 +120,7 @@ BEGIN
FOR row IN
SELECT * FROM CDB_Overviews(reloid)
LOOP
EXECUTE Format('DROP TABLE %I.%I;', schema_name, row.overview_table);
EXECUTE Format('DROP TABLE %s;', row.overview_table);
RAISE NOTICE 'Dropped overview for level %: %', row.z, row.overview_table;
END LOOP;
END;