From 4fcdc33ec0816d82e63d3e4368f3141a63a47710 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 26 Jul 2025 10:32:53 -0500 Subject: [PATCH] Fix database parameters for PgBouncer compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove PostgreSQL session-specific parameters that are not supported by PgBouncer connection pooling. Keep only application_name parameter which is passed through properly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- config/runtime.exs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 7ea1f2c..eb69c9c 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -82,17 +82,10 @@ if config_env() == :prod do # Optimize for unnamed prepared statements (better for dynamic queries) prepare: :unnamed, # Connection parameters to leverage PostgreSQL settings + # Note: When using PgBouncer, only certain parameters are supported parameters: [ # Application name for monitoring - application_name: "aprsme", - # Leverage synchronous_commit=off in postgresql.conf - synchronous_commit: "off", - # Match work_mem setting - work_mem: "16MB", - # Statement timeout as safety net - statement_timeout: "30s", - # Prevent idle transactions - idle_in_transaction_session_timeout: "60s" + application_name: "aprsme" ] config :aprsme, AprsmeWeb.Endpoint,