Users may remain connected to the database after running queries.
These connections will consume connection slots and may cause the "max_connections" limit to be reached.
This will then block other users from connecting to the database.
This KB describes how to find and terminate connections that have bee idle for some time in VMWare Postgres.
See KB "Scripts to terminate all idle connections in Pivotal Greenplum Database cluster " for instructions for doing this in VMWARE Greenplum database.
SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE state = 'idle' AND state_change < now() - '15min'::interval;
#!/bin/sh export PGDATABASE='template1' export PGPORT='5432' psql <<-EOF SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE state = 'idle' AND state_change < now() - '15min'::interval; EOF