pub struct TableStorageOptions {
pub fillfactor: Option<u32>,
pub parallel_workers: Option<u32>,
pub toast_tuple_target: Option<u32>,
pub user_catalog_table: Option<bool>,
pub vacuum_truncate: Option<bool>,
pub extra: BTreeMap<String, String>,
}Expand description
Storage options for tables. MV reuses via type alias since PG documents identical reloptions for both.
Fields§
§fillfactor: Option<u32>fillfactor — target heap page density (10..=100).
parallel_workers: Option<u32>parallel_workers — number of parallel workers (0..=1024).
toast_tuple_target: Option<u32>toast_tuple_target — TOAST compression threshold in bytes (128..=8160).
user_catalog_table: Option<bool>user_catalog_table — treat as a catalog table for logical replication.
vacuum_truncate: Option<bool>vacuum_truncate — allow VACUUM to truncate trailing empty pages (PG 12+).
extra: BTreeMap<String, String>Unknown / extension-registered options, plus the autovacuum_* key
family. Stored as raw key = value strings, always sorted by key
(BTreeMap).
Implementations§
Trait Implementations§
Source§impl Clone for TableStorageOptions
impl Clone for TableStorageOptions
Source§fn clone(&self) -> TableStorageOptions
fn clone(&self) -> TableStorageOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableStorageOptions
impl Debug for TableStorageOptions
Source§impl Default for TableStorageOptions
impl Default for TableStorageOptions
Source§fn default() -> TableStorageOptions
fn default() -> TableStorageOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TableStorageOptions
impl<'de> Deserialize<'de> for TableStorageOptions
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TableStorageOptions
Source§impl Hash for TableStorageOptions
impl Hash for TableStorageOptions
Source§impl Ord for TableStorageOptions
impl Ord for TableStorageOptions
Source§fn cmp(&self, other: &TableStorageOptions) -> Ordering
fn cmp(&self, other: &TableStorageOptions) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TableStorageOptions
impl PartialEq for TableStorageOptions
Source§fn eq(&self, other: &TableStorageOptions) -> bool
fn eq(&self, other: &TableStorageOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TableStorageOptions
impl PartialOrd for TableStorageOptions
Source§impl Serialize for TableStorageOptions
impl Serialize for TableStorageOptions
impl StructuralPartialEq for TableStorageOptions
Auto Trait Implementations§
impl Freeze for TableStorageOptions
impl RefUnwindSafe for TableStorageOptions
impl Send for TableStorageOptions
impl Sync for TableStorageOptions
impl Unpin for TableStorageOptions
impl UnsafeUnpin for TableStorageOptions
impl UnwindSafe for TableStorageOptions
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
Mutably borrows from an owned value. Read more
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>,
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>
Converts
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>
Converts
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