Make CDB_CreateOverviews a SECURITY DEFINER function

So that it can change the permissions of overview tables
(by updating pg_class) even when executed by non-priviledeged users.
This commit is contained in:
Javier Goizueta 2016-01-28 16:32:40 +01:00
parent 26c95347cd
commit 66387c2d44

View File

@ -1,3 +1,5 @@
-- security definer
-- Pattern that can be used to detect overview tables and Extract
-- the intended zoom level from the table name.
-- Scope: private.
@ -629,4 +631,4 @@ BEGIN
RETURN overview_tables;
END;
$$ LANGUAGE PLPGSQL;
$$ LANGUAGE PLPGSQL SECURITY DEFINER;