Category / Section
Managing Idle Connections in PostgreSQL for Bold Reports
Published:
Updated:
Problem
Idle connections in the PostgreSQL database can impact the performance of Bold Reports. To address this issue, it is necessary to clean up idle connections.
Solution
To close idle connections in the PostgreSQL database, you can add a timeout for idle connections. Follow the steps below:
-
Run the following command on the PostgreSQL server to set the idle connection timeout:
ALTER SYSTEM SET idle_in_transaction_session_timeout='15s';
-
Restart the PostgreSQL server.
-
To verify if the timeout has been added properly, run the following query on the server:
SHOW idle_in_transaction_session_timeout;
By setting the idle_in_transaction_session_timeout parameter, idle connections will be closed automatically after the specified time, improving the performance of Bold Reports.