Connections to DB - Mailing list pgsql-general

From Onyx
Subject Connections to DB
Date
Msg-id 20051027172128.AB5B6A48D2@mail.frii.com
Whole thread Raw
Responses Re: Connections to DB
List pgsql-general

How can I view the current, persistent connections to a database?  Is there a way to do this with 'psql' or with some other PostgreSQL bundled tool/utility (~pgsql_directory/bin), instead of resorting to the underlying operating system commands (ie: netstat -a | grep postgres)?

I am interested in finding out the following: 1) How many connections are there to the database? 2) How long have they persisted?  3)  What is the idle time of the connections?

Any help would be appreciated.  Thanks!

- Onyx
---
Onyx Mueller
Software Engineer
i-cubed : information integration & imaging LLC
201 Linden Street : Third Floor
Fort Collins, CO  80524
970-482-4400 voice
970-482-4499 fax
www.i3.com
 

pgsql-general by date:

Previous
From: "Andrus"
Date:
Subject: Re: alt+F not working after calling pg_dump
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Connections to DB