AlterPolicy() and CreatePolicy() lacked their respective hook invocations.
Noted by Noah Misch, review by Dean Rasheed. Back-patch to 9.5 where
RLS was introduced.
SHARED_DEPENDENCY_POLICY);
}
+ InvokeObjectPostCreateHook(PolicyRelationId, policy_id, 0);
+
/* Invalidate Relation Cache */
CacheInvalidateRelcache(target_table);
SHARED_DEPENDENCY_POLICY);
}
+ InvokeObjectPostAlterHook(PolicyRelationId, policy_id, 0);
+
heap_freetuple(new_tuple);
/* Invalidate Relation Cache */