Handle policies during DROP OWNED BY

Stephen Frost <sfrost@snowman.net>

Commit: 833728d4c8832f1d37e7aeaa723c8bc4045df32e
Author: Stephen Frost <sfrost@snowman.net>
Date: 2015-12-11T21:12:25Z
Releases: 9.6.0
Handle policies during DROP OWNED BY

DROP OWNED BY handled GRANT-based ACLs but was not removing roles from
policies.  Fix that by having DROP OWNED BY remove the role specified
from the list of roles the policy (or policies) apply to, or the entire
policy (or policies) if it only applied to the role specified.

As with ACLs, the DROP OWNED BY caller must have permission to modify
the policy or a WARNING is thrown and no change is made to the policy.

Files