File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ module "postgresql_server_configuration" {
81
81
for_each = var. server_configuration
82
82
83
83
postgresql_server_id = module. postgresql_server . id
84
-
84
+
85
85
configuration_key = each. key
86
86
configuration_value = each. value
87
87
}
@@ -120,4 +120,8 @@ module "private_endpoint" {
120
120
request_message = var. request_message
121
121
tags = local. private_endpoint_tags
122
122
private_service_connection_name = module. resource_names [" private_service_connection" ]. standard
123
- }
123
+ }
124
+
125
+ // In your server_configuration map, remove these if PgBouncer is not enabled:
126
+ // "pgbouncer.max_prepared_statements" = "..."
127
+ // "pgbouncer.ignore_startup_parameters" = "..."
Original file line number Diff line number Diff line change @@ -146,7 +146,12 @@ variable "postgres_version" {
146
146
variable "server_configuration" {
147
147
description = " Map of configurations to apply to the postgres flexible server"
148
148
type = map (string )
149
- default = {}
149
+ default = {
150
+ # Remove PgBouncer keys unless PgBouncer is enabled
151
+ # "pgbouncer.max_prepared_statements" = "..."
152
+ # "pgbouncer.ignore_startup_parameters" = "..."
153
+ # other configs...
154
+ }
150
155
}
151
156
152
157
variable "delegated_subnet_id" {
You can’t perform that action at this time.
0 commit comments