Skip to content

Commit

Permalink
Add pg_failover_slots extension to postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad committed Aug 22, 2024
1 parent 83c5f39 commit c1dbb7b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions terraform/aks/databases.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,15 @@ resource "azurerm_postgresql_flexible_server_configuration" "wal_level" {
server_id = module.postgres.azure_server_id
value = "logical"
}

resource "azurerm_postgresql_flexible_server_configuration" "shared_preload_libraries" {
name = "shared_preload_libraries"
server_id = module.postgres.azure_server_id
value = "pg_cron,pg_stat_statements,pg_availability,pg_failover_slots"
}

resource "azurerm_postgresql_flexible_server_configuration" "hot_standby_feedback" {
name = "hot_standby_feedback"
server_id = module.postgres.azure_server_id
value = "on"
}

0 comments on commit c1dbb7b

Please sign in to comment.