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:
parent
26c95347cd
commit
66387c2d44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user