pub struct ReferencedPartitionConstraint {
pub partition: [u8; 16],
pub parent: Option<[u8; 16]>,
pub name: String,
pub catalog_identity: ConstraintCatalogIdentity,
pub validated: bool,
}Expand description
The constraint PostgreSQL derives from a foreign key on one partition of the partitioned table it references, whose pg_constraint.conparentid names the constraint it derives from. It names the partition’s share of the referenced rows in pg_constraint, in errors about those rows and in DETACH PARTITION, and keeps the name chosen when the partition joined the referenced table, whatever later happens to the name of the foreign key.
Fields§
§partition: [u8; 16]Object identity of the referenced partition.
parent: Option<[u8; 16]>Object identity of the partitioned partition whose derived constraint this one derives from, or None when it derives from the foreign key itself, which references the partition’s parent.
name: String§catalog_identity: ConstraintCatalogIdentity§validated: boolWhether the referenced partition’s share of the referencing rows is known to hold. It follows the foreign key, except that VALIDATE CONSTRAINT of an unvalidated foreign key’s derived constraint validates that constraint and the ones deriving from it alone.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ReferencedPartitionConstraint
impl<'de> Deserialize<'de> for ReferencedPartitionConstraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ReferencedPartitionConstraint
impl StructuralPartialEq for ReferencedPartitionConstraint
Auto Trait Implementations§
impl Freeze for ReferencedPartitionConstraint
impl RefUnwindSafe for ReferencedPartitionConstraint
impl Send for ReferencedPartitionConstraint
impl Sync for ReferencedPartitionConstraint
impl Unpin for ReferencedPartitionConstraint
impl UnsafeUnpin for ReferencedPartitionConstraint
impl UnwindSafe for ReferencedPartitionConstraint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more