diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 800d2928..f18894b4 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -123,7 +123,7 @@ module "postgresql_db" { tcp_keepalives_interval = 50 tcp_keepalives_count = 6 archive_timeout = 1000 - wal_level = "replica" + wal_level = "hot_standby" max_replication_slots = 10 max_wal_senders = 20 } diff --git a/solutions/standard/DA-types.md b/solutions/standard/DA-types.md index 12c24c04..873b48d7 100644 --- a/solutions/standard/DA-types.md +++ b/solutions/standard/DA-types.md @@ -162,7 +162,7 @@ The configuration object in the input contains the following options categorized **3. WAL Settings. [Learn more](https://cloud.ibm.com/docs/databases-for-postgresql?topic=databases-for-postgresql-changing-configuration&interface=cli#wal-settings).** - `archive_timeout`: Forces a switch to the next WAL file if no new file has been generated within the specified time. Useful for ensuring regular WAL archiving. (default: `1800`) -- `wal_level`: Sets the level of information written to the WAL. Higher levels, like replica or logical, are required for replication and logical decoding. (default: `replica`) +- `wal_level`: Sets the level of information written to the WAL. Higher levels, like hot_standby or logical, are required for replication and logical decoding. (default: `hot_standby`) - `max_replication_slots`: Specifies the maximum number of replication slots, which are used for streaming replication and logical decoding. (default: `10`) - `max_wal_senders`: Determines the maximum number of concurrent WAL sender processes for streaming replication. Increasing this allows more standby servers to connect. (default: `12`) @@ -185,7 +185,7 @@ The following example shows values for the `configuration` input. "tcp_keepalives_interval": 15, "tcp_keepalives_count": 6, "archive_timeout": 1800, - "wal_level": "replica", + "wal_level": "hot_standby", "max_replication_slots": 10, "max_wal_senders": 12 } diff --git a/solutions/standard/variables.tf b/solutions/standard/variables.tf index 35e9aa21..95451e77 100644 --- a/solutions/standard/variables.tf +++ b/solutions/standard/variables.tf @@ -159,7 +159,7 @@ variable "configuration" { tcp_keepalives_interval = 15 tcp_keepalives_count = 6 archive_timeout = 1800 - wal_level = "replica" + wal_level = "hot_standby" max_replication_slots = 10 max_wal_senders = 12 } diff --git a/variables.tf b/variables.tf index 1f74cc5e..e8da4935 100644 --- a/variables.tf +++ b/variables.tf @@ -203,8 +203,8 @@ variable "configuration" { } validation { - condition = var.configuration != null ? (var.configuration["wal_level"] != null ? contains(["replica", "logical"], var.configuration["wal_level"]) : true) : true - error_message = "Value for `configuration[\"wal_level\"]` must be either `replica` or `logical`, if specified." + condition = var.configuration != null ? (var.configuration["wal_level"] != null ? contains(["hot_standby", "logical"], var.configuration["wal_level"]) : true) : true + error_message = "Value for `configuration[\"wal_level\"]` must be either `hot_standby` or `logical`, if specified." } validation {