Skip to main content

ensure_drop_authority

Function ensure_drop_authority 

Source
pub fn ensure_drop_authority(
    server: &ForeignServerDefinition,
    session: &dyn RoleReferenceNames,
    catalog: &dyn RoleCatalogGuards,
) -> Result<(), SQLError>
Expand description

Check the current role against the selected server’s exact owner incarnation. Execution repeats this check on the freshly resolved definition after acquiring its object lock.