If there is a connection from a client that has been in the waiting state for an extended period, you can minimize performance degradation of the database by closing the problematic connection.
The following methods are available for identifying a connection to be closed:
view(pg_stat_activity) (refer to "17.4.1 When using the view (pg_stat_activity)")
ps command (refer to "17.4.2 Using the ps Command")
pgAdmin (refer to "17.4.3 Using pgAdmin")
Use the system management function (pg_terminate_backend) to disconnect connections.