pub struct PgPartitionedTable {
pub partrelid: SmolStr,
pub partstrat: PgPartitionedTablePartstrat,
pub partnatts: u16,
pub partdefid: Option<SmolStr>,
pub partattrs: Vec<u16>,
pub partclass: Vec<SmolStr>,
pub partcollation: Vec<Option<SmolStr>>,
pub partexprs: Option<SmolStr>,
}Expand description
The DDL-only contents of pg_partitioned_table
Fields§
§partrelid: SmolStroid (references pg_class.oid) The OID of the pg_class entry for this partitioned table
partstrat: PgPartitionedTablePartstratchar Partitioning strategy; h = hash partitioned table, l = list partitioned table, r = range partitioned table
partnatts: u16int2 The number of columns in the partition key
partdefid: Option<SmolStr>oid (references pg_class.oid) The OID of the pg_class entry for the default partition of this partitioned table, or zero if this partitioned table does not have a default partition
partattrs: Vec<u16>int2vector (references pg_attribute.attnum) This is an array of partnatts values that indicate which table columns are part of the partition key. For example, a value of 1 3 would mean that the first and the third table columns make up the partition key. A zero in this array indicates that the corresponding partition key column is an expression, rather than a simple column reference.
partclass: Vec<SmolStr>oidvector (references pg_opclass.oid) For each column in the partition key, this contains the OID of the operator class to use. See pg_opclass for details.
partcollation: Vec<Option<SmolStr>>oidvector (references pg_collation.oid) For each column in the partition key, this contains the OID of the collation to use for partitioning, or zero if the column is not of a collatable data type.
partexprs: Option<SmolStr>pg_node_tree Expression trees (in nodeToString() representation) for partition key columns that are not simple column references. This is a list with one element for each zero entry in partattrs. Null if all partition key columns are simple references.
Trait Implementations§
Source§impl Clone for PgPartitionedTable
impl Clone for PgPartitionedTable
Source§fn clone(&self) -> PgPartitionedTable
fn clone(&self) -> PgPartitionedTable
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PgPartitionedTable
impl Debug for PgPartitionedTable
Source§impl<'de> Deserialize<'de> for PgPartitionedTable
impl<'de> Deserialize<'de> for PgPartitionedTable
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgPartitionedTable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgPartitionedTable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PgPartitionedTable
impl PartialEq for PgPartitionedTable
Source§impl Serialize for PgPartitionedTable
impl Serialize for PgPartitionedTable
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for PgPartitionedTable
impl StructuralPartialEq for PgPartitionedTable
Auto Trait Implementations§
impl Freeze for PgPartitionedTable
impl RefUnwindSafe for PgPartitionedTable
impl Send for PgPartitionedTable
impl Sync for PgPartitionedTable
impl Unpin for PgPartitionedTable
impl UnsafeUnpin for PgPartitionedTable
impl UnwindSafe for PgPartitionedTable
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.