pub struct BackupOnlineConfiguration {
pub immediate_checkpoint: Option<bool>,
pub wait_for_archive: Option<bool>,
}Expand description
Configuration parameters to control the online/hot backup with volume snapshots Overrides the default settings specified in the cluster ‘.backup.volumeSnapshot.onlineConfiguration’ stanza
Fields§
§immediate_checkpoint: Option<bool>Control whether the I/O workload for the backup initial checkpoint will be limited, according to the checkpoint_completion_target setting on the PostgreSQL server. If set to true, an immediate checkpoint will be used, meaning PostgreSQL will complete the checkpoint as soon as possible. false by default.
wait_for_archive: Option<bool>If false, the function will return immediately after the backup is completed, without waiting for WAL to be archived. This behavior is only useful with backup software that independently monitors WAL archiving. Otherwise, WAL required to make the backup consistent might be missing and make the backup useless. By default, or when this parameter is true, pg_backup_stop will wait for WAL to be archived when archiving is enabled. On a standby, this means that it will wait only when archive_mode = always. If write activity on the primary is low, it may be useful to run pg_switch_wal on the primary in order to trigger an immediate segment switch.
Trait Implementations§
source§impl Clone for BackupOnlineConfiguration
impl Clone for BackupOnlineConfiguration
source§fn clone(&self) -> BackupOnlineConfiguration
fn clone(&self) -> BackupOnlineConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for BackupOnlineConfiguration
impl Debug for BackupOnlineConfiguration
source§impl Default for BackupOnlineConfiguration
impl Default for BackupOnlineConfiguration
source§fn default() -> BackupOnlineConfiguration
fn default() -> BackupOnlineConfiguration
source§impl<'de> Deserialize<'de> for BackupOnlineConfiguration
impl<'de> Deserialize<'de> for BackupOnlineConfiguration
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>,
source§impl JsonSchema for BackupOnlineConfiguration
impl JsonSchema for BackupOnlineConfiguration
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more