You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Make security barrier views automatically updatable
Views which are marked as security_barrier must have their qualsapplied before any user-defined quals are called, to preventuser-defined functions from being able to see rows which thesecurity barrier view is intended to prevent them from seeing.Remove the restriction on security barrier views being automaticallyupdatable by adding a new securityQuals list to the RTE structurewhich keeps track of the quals from security barrier views at eachlevel, independently of the user-supplied quals. When RTEs arelater discovered which have securityQuals populated, they are turnedinto subquery RTEs which are marked as security_barrier to preventany user-supplied quals being pushed down (modulo LEAKPROOF quals).Dean Rasheed, reviewed by Craig Ringer, Simon Riggs, KaiGai Kohei