What is idle connection PostgreSQL?
Simply so, where is PostgreSQL idle connection?
If you want to see how many idle connections you have that have an open transaction, you could use: select * from pg_stat_activity where (state = 'idle in transaction') and xact_start is not null; This will provide a list of open connections that are in the idle state, that also have an open transaction.
Regarding this, how do I disable idle connection in PostgreSQL?
To close all database connections that have been idle for at least 10 minutes: SELECT pg_terminate_backend(procpid) FROM pg_stat_activity WHERE current_query = '<IDLE>' AND now() - query_start > '00:10:00'; WARNING Don't be fooled by the SELECT statement used here.
PostgreSQL Connection Limits. By default, all PostgreSQL deployments on Compose start with a connection limit that sets the maximum number of connections allowed to 100.