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:
@@ -1,3 +1,5 @@
|
|||||||
|
-- security definer
|
||||||
|
|
||||||
-- Pattern that can be used to detect overview tables and Extract
|
-- Pattern that can be used to detect overview tables and Extract
|
||||||
-- the intended zoom level from the table name.
|
-- the intended zoom level from the table name.
|
||||||
-- Scope: private.
|
-- Scope: private.
|
||||||
@@ -629,4 +631,4 @@ BEGIN
|
|||||||
|
|
||||||
RETURN overview_tables;
|
RETURN overview_tables;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE PLPGSQL;
|
$$ LANGUAGE PLPGSQL SECURITY DEFINER;
|
||||||
|
|||||||
Reference in New Issue
Block a user