pub struct PermInfo {
pub relid: u32,
pub check_as: u32,
pub invoker: bool,
pub required: u32,
pub selected: BTreeSet<i16>,
pub inserted: BTreeSet<i16>,
pub updated: BTreeSet<i16>,
}Expand description
RTEPermissionInfo: the privileges that the statement needs on a relation.
Fields§
§relid: u32The OID of the relation.
check_as: u32checkAsUser: the role whose privileges count, or 0 for the current user. A relation of the query of a view uses the owner of the view, unless the view has security_invoker.
invoker: boolTrue for a relation of the query of a view with security_invoker, whose 0 in check_as stays the current user in a view outside it, as RelationBuildRuleLock gives InvalidOid to setRuleCheckAsUser for the rules of the view.
required: u32requiredPerms: the bits of ACL_SELECT, ACL_INSERT, ACL_UPDATE and ACL_DELETE that the statement needs.
selected: BTreeSet<i16>selectedCols: the numbers of the columns that the statement reads, with 0 for the whole row.
inserted: BTreeSet<i16>insertedCols: the numbers of the columns that an INSERT gives values.
updated: BTreeSet<i16>updatedCols: the numbers of the columns that an UPDATE sets.