Articles in this section
Category / Section

How to manage idle connections in PostgreSQL for Bold BI®

Published: Jun 09, 2023

Problem

Idle connections in the PostgreSQL database can impact the performance of Bold BI®. 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:

  1. Run the following command in the PostgreSQL server to set the idle connection timeout:

    ALTER SYSTEM SET idle_in_transaction_session_timeout='15s';
    
  2. Restart the PostgreSQL server.

  3. To verify if the timeout has been added properly, run the following query in 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 BI®.

Additional References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
RM
Written by Reethika Moovendhan
Updated: Jun 09, 2023
Comments (0)
Please  to leave a comment
Access denied
Access denied