Skip to content

Commit 97a9f96

Browse files
authored
fix: removed wal_level setting from DA default configuration to workaround a backend schema bug. By not setting it, it will default to replica. (#514)
1 parent 21c0b23 commit 97a9f96

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

examples/complete/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ module "postgresql_db" {
123123
tcp_keepalives_interval = 50
124124
tcp_keepalives_count = 6
125125
archive_timeout = 1000
126-
wal_level = "replica"
127126
max_replication_slots = 10
128127
max_wal_senders = 20
129128
}

solutions/standard/DA-types.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ The following example shows values for the `configuration` input.
185185
"tcp_keepalives_interval": 15,
186186
"tcp_keepalives_count": 6,
187187
"archive_timeout": 1800,
188-
"wal_level": "replica",
189188
"max_replication_slots": 10,
190189
"max_wal_senders": 12
191190
}

solutions/standard/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ variable "configuration" {
159159
tcp_keepalives_interval = 15
160160
tcp_keepalives_count = 6
161161
archive_timeout = 1800
162-
wal_level = "replica"
163162
max_replication_slots = 10
164163
max_wal_senders = 12
165164
}

variables.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@ variable "configuration" {
202202
error_message = "Value for `configuration[\"archive_timeout\"]` must be 300 or more, if specified."
203203
}
204204

205-
validation {
206-
condition = var.configuration != null ? (var.configuration["wal_level"] != null ? contains(["replica", "logical"], var.configuration["wal_level"]) : true) : true
207-
error_message = "Value for `configuration[\"wal_level\"]` must be either `replica` or `logical`, if specified."
208-
}
205+
# skip validation for issue #508 and #512
206+
#validation {
207+
# condition = var.configuration != null ? (var.configuration["wal_level"] != null ? contains(["replica", "logical"], var.configuration["wal_level"]) : true) : true
208+
# error_message = "Value for `configuration[\"wal_level\"]` must be either `replica` or `logical`, if specified."
209+
#}
209210

210211
validation {
211212
condition = var.configuration != null ? (var.configuration["max_replication_slots"] != null ? var.configuration["max_replication_slots"] >= 10 : true) : true

0 commit comments

Comments
 (0)