The command:

select * from pg_stat_activity

shows all currently active connections. The database is hosted by AWS RDS and I am accessing the database with pgAdmin 4, thus I expect one other connection than mine and that is the rdsadmin, but it seems like I have 2 connections.

Output: enter image description here

Why do I have two connections when using one Client?


The second connection gets started when you start the query tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.