pub struct PostgresConfig {Show 23 fields
pub effective_cache_size: Option<String>,
pub logical_decoding_work_mem: Option<String>,
pub maintenance_work_mem: Option<String>,
pub track_activity_query_size: Option<String>,
pub max_connections: Option<i32>,
pub max_locks_per_transaction: Option<i32>,
pub max_parallel_maintenance_workers: Option<i32>,
pub max_parallel_workers: Option<i32>,
pub max_parallel_workers_per_gather: Option<i32>,
pub max_replication_slots: Option<i32>,
pub max_slot_wal_keep_size: Option<String>,
pub max_standby_archive_delay: Option<String>,
pub max_standby_streaming_delay: Option<String>,
pub max_wal_size: Option<String>,
pub max_wal_senders: Option<i32>,
pub max_worker_processes: Option<i32>,
pub shared_buffers: Option<String>,
pub statement_timeout: Option<String>,
pub track_commit_timestamp: Option<bool>,
pub wal_keep_size: Option<String>,
pub wal_sender_timeout: Option<String>,
pub work_mem: Option<String>,
pub session_replication_role: Option<SessionReplicationRole>,
}
Expand description
Represents the configuration settings for a Postgres database.
let mut postgres_config = PostgresConfig::default();
postgres_config.max_parallel_workers = Some(128);
// You can now update your instance's Postgres configuration using Client::set_postgres_config
Fields§
§effective_cache_size: Option<String>
§logical_decoding_work_mem: Option<String>
§maintenance_work_mem: Option<String>
§track_activity_query_size: Option<String>
§max_connections: Option<i32>
§max_locks_per_transaction: Option<i32>
§max_parallel_maintenance_workers: Option<i32>
§max_parallel_workers: Option<i32>
§max_parallel_workers_per_gather: Option<i32>
§max_replication_slots: Option<i32>
§max_slot_wal_keep_size: Option<String>
§max_standby_archive_delay: Option<String>
§max_standby_streaming_delay: Option<String>
§max_wal_size: Option<String>
§max_wal_senders: Option<i32>
§max_worker_processes: Option<i32>
§statement_timeout: Option<String>
§track_commit_timestamp: Option<bool>
§wal_keep_size: Option<String>
§wal_sender_timeout: Option<String>
§work_mem: Option<String>
§session_replication_role: Option<SessionReplicationRole>
Trait Implementations§
Source§impl Clone for PostgresConfig
impl Clone for PostgresConfig
Source§fn clone(&self) -> PostgresConfig
fn clone(&self) -> PostgresConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PostgresConfig
impl Debug for PostgresConfig
Source§impl Default for PostgresConfig
impl Default for PostgresConfig
Source§fn default() -> PostgresConfig
fn default() -> PostgresConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostgresConfig
impl<'de> Deserialize<'de> for PostgresConfig
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
Auto Trait Implementations§
impl Freeze for PostgresConfig
impl RefUnwindSafe for PostgresConfig
impl Send for PostgresConfig
impl Sync for PostgresConfig
impl Unpin for PostgresConfig
impl UnwindSafe for PostgresConfig
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