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 moreAuto Trait Implementations§
impl Freeze for ClusterPostgresql
impl RefUnwindSafe for ClusterPostgresql
impl Send for ClusterPostgresql
impl Sync for ClusterPostgresql
impl Unpin for ClusterPostgresql
impl UnwindSafe for ClusterPostgresql
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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