Struct controller::cloudnativepg::clusters::ClusterPostgresql
source · pub struct ClusterPostgresql {
pub enable_alter_system: Option<bool>,
pub ldap: Option<ClusterPostgresqlLdap>,
pub parameters: Option<BTreeMap<String, String>>,
pub pg_hba: Option<Vec<String>>,
pub pg_ident: Option<Vec<String>>,
pub promotion_timeout: Option<i32>,
pub shared_preload_libraries: Option<Vec<String>>,
pub sync_replica_election_constraint: Option<ClusterPostgresqlSyncReplicaElectionConstraint>,
}Expand description
Configuration of the PostgreSQL server
Fields§
§enable_alter_system: Option<bool>If this parameter is true, the user will be able to invoke ALTER SYSTEM on this CloudNativePG Cluster. This should only be used for debugging and troubleshooting. Defaults to false.
ldap: Option<ClusterPostgresqlLdap>Options to specify LDAP configuration
parameters: Option<BTreeMap<String, String>>PostgreSQL configuration options (postgresql.conf)
pg_hba: Option<Vec<String>>PostgreSQL Host Based Authentication rules (lines to be appended to the pg_hba.conf file)
pg_ident: Option<Vec<String>>PostgreSQL User Name Maps rules (lines to be appended to the pg_ident.conf file)
promotion_timeout: Option<i32>Specifies the maximum number of seconds to wait when promoting an instance to primary. Default value is 40000000, greater than one year in seconds, big enough to simulate an infinite timeout
Lists of shared preload libraries to add to the default ones
sync_replica_election_constraint: Option<ClusterPostgresqlSyncReplicaElectionConstraint>Requirements to be met by sync replicas. This will affect how the “synchronous_standby_names” parameter will be set up.
Trait Implementations§
source§impl Clone for ClusterPostgresql
impl Clone for ClusterPostgresql
source§fn clone(&self) -> ClusterPostgresql
fn clone(&self) -> ClusterPostgresql
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ClusterPostgresql
impl Debug for ClusterPostgresql
source§impl Default for ClusterPostgresql
impl Default for ClusterPostgresql
source§fn default() -> ClusterPostgresql
fn default() -> ClusterPostgresql
source§impl<'de> Deserialize<'de> for ClusterPostgresql
impl<'de> Deserialize<'de> for ClusterPostgresql
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 ClusterPostgresql
impl JsonSchema for ClusterPostgresql
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