In this post, I am sharing one psql script to find a running or active session and connections of PostgreSQL.
This script is very useful for PostgreSQL DBA.
I am using this same script for our productions PostgreSQL server.
Below is a script and I have already filtered your running sessions and “idle connections”.
WHERE state <> 'idle'
Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.
If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.
I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.