From 28d41d5a4410b5552f502eba7003e6da999b953b Mon Sep 17 00:00:00 2001 From: thecyberlearn Date: Fri, 5 Sep 2025 08:53:52 +0530 Subject: [PATCH] Fix invalid PostgreSQL MAX_CONNS configuration option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove MAX_CONNS from database OPTIONS as it's not a valid psycopg2 parameter - Keep isolation_level setting for PostgreSQL optimization - This resolves ProgrammingError: invalid connection option "MAX_CONNS" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- netcop_hub/settings.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/netcop_hub/settings.py b/netcop_hub/settings.py index 16b31c6..9424a55 100644 --- a/netcop_hub/settings.py +++ b/netcop_hub/settings.py @@ -199,10 +199,7 @@ if database_url: # Add PostgreSQL optimization settings if psycopg2: db_config['OPTIONS'] = { - 'MAX_CONNS': 20, - 'OPTIONS': { - 'isolation_level': psycopg2.extensions.ISOLATION_LEVEL_READ_COMMITTED, - } + 'isolation_level': psycopg2.extensions.ISOLATION_LEVEL_READ_COMMITTED, } # Connection pooling and performance settings